[[PageOutline]] == Perf profiling with perf [https://perf.wiki.kernel.org/index.php/Main_Page perf] === Using perf with the SDK The Flatpak SDK already provides perf. You don't need to install it on your host machine. To record a trace, use this command: {{{ #!sh $ WEBKIT_MINI_BROWSER_PREFIX="perf record -g" Tools/Scripts/run-minibrowser --gtk ... }}} You don't necessarily need a debug build, but it's better to have one, or a release build configured as: {{{ #!sh $ Tools/Scripts/build-webkit --gtk --cmakeargs='-DCMAKE_BUILD_TYPE=RelWithDebInfo' --cmakeargs='-DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer"' }}} To display the report: {{{ #!sh $ Tools/Scripts/webkit-flatpak -c perf report -g }}}