Performance:Tools/oprofile: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* You may need to compile with | * You may need to compile with | ||
ac_add_options --enable-optimize=" | ac_add_options --enable-optimize="-fno-omit-frame-pointer" | ||
in order to get callgraph data properly. Also you need debug symbols. | in order to get callgraph data properly. Also you need debug symbols. | ||
Latest revision as of 18:12, 1 February 2011
Profiling Firefox or Fennec with oprofile
oprofile is a useful profiling tool for Linux. Using it does not require recompiling in many cases, which is nice.
- You may need to compile with
ac_add_options --enable-optimize="-fno-omit-frame-pointer"
in order to get callgraph data properly. Also you need debug symbols.
- You can then follow the following workflow:
sudo opcontrol --reset sudo opcontrol --no-vmlinux sudo opcontrol --start --callgraph=10 [... do stuff ...] sudo opcontrol --shutdown opreport --demangle=smart --symbols --callgraph ./fennec `ls *.so` &> o ; gedit o
Notes
- Callgraph data may not work on x86_64 or ARM, sadly.