You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



eazel profilers

Contact: Chris McAfee (mcafee@netscape.com)
$Id: eazel.html,v 1.7 2001/02/22 06:05:12 mcafee%netscape.com Exp $



What is this?

Eazel has gotten the old Corel profiler (Linux/Intel) going again, and is actually comprised of two tools:
  • prof: A statistical profiler that works like jprof but does not require any source changes to mozilla (but still needs symbols in libraries). Has a cool UI that updates as the app is running. There is also an api to start/stop/reset/report profiling.

  • profiler: An instrumenting profiler. Requires you to rebuild mozilla with --enable-eazel-profiler, and has API to start/stop/reset/report profiling. Very resource intensive, reportedly works with gtkEmbed and maybe mozilla.

Get and build the profilers

Both profiler tools are stored on the gnome cvs server, check both out with this:
  setenv CVSROOT :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome
  cvs login  # blank password
  cvs checkout -z3 eazel-tools
Build both profilers:
  cd eazel-tools
  ./autogen.sh
  gmake

How to use prof, the statistical profiler

Some install hacks were needed with the CVS version, rpm version probably fixes this:
  cd mozilla/dist/bin
  ln -s <path-to>/eazel-tools/prof/prof/prof.glade .
  setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<path-to>/eazel-tools/prof/.libs
Run the profiler:
  cd mozilla/dist/bin
  <path-to>/eazel-tools/prof/prof mozilla-bin
Here's a screen shot while mozilla was idling:

How to use profiler, the instrumenting profiler

Build mozilla with eazel stuff turned on for the modules you are interested here (ex: rdf)
  ./configure --enable-eazel-profiler --with-profile-modules=rdf
Some compiler problems here? see
shaver's post.

[Insert API start/stop stuff here, haven't looked at this yet --mcafee]

Interpreting results

[hints go here]

Bugs

Getting help with these tools

The Eazel guys, some of whom have written code for or use this profiler, hang out on irc://irc.eazel.com/#nautilus, that's probably the best way to find who to direct specific questions to.
Chris McAfee
Last modified: Wed Feb 21 22:05:34 PST 2001