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.



jprof usage

jprof README

Example usages

Pause functionality (sspitzer):
    # Don't start profiling until it gets the SIGPROF signal.
    setenv JPROF_FLAGS JP_DEFER

    # run mozilla, and get ready to do your stuff...
    ./mozilla

    # start profiling...
    # 
    # if you use JP_REALTIME in JPROF_FLAGS, use `kill -ALRM {mozilla-bin pid}` here
    #
    ./jprofsig start  # kill -PROF {mozilla-bin pid}

    # do your stuff...

    # pause profiling...
    # 
    ./jprofsig stop   # kill -USR1 {mozilla-bin pid}

    # exit mozilla

    # Post-process jprof output to HTML format.
    ./jprof ./mozilla-bin jprof-log > jprof.html

Tweaks

  • Suggestions to lower JP_PERIOD default to 0.0015; reports of better data for lower values JP_PERIOD (dbaron, sspitzer).

Chris McAfee
Last modified: Wed Feb 14 18:53:27 PST 2001