Performance:Tools/oprofile

From MozillaWiki
< Performance:Tools
Revision as of 23:18, 23 September 2010 by Azakai (talk | contribs) (Created page with "= 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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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="-O0 -fno-omit-frame-pointer"

in order to get callgraph data properly.

  • 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, sadly.