THE META-HTML LANGUAGE REFERENCE MANUAL

[TOC]

Manual Page Viewer

Name: PROFILER::DUMP

Section: Code Profiling


Synopsis:

    <profiler::dump FILENAME &key [SORT=[NAMES|TIMES|CALLS|EXPENSE]]

Description:

    Write profiling information to FILENAME. Unlike C profilers, the output is quite self-explanatory.

    To try it out, do the following in mdb:

    <set-var mhtml::profile-functions = true>
    <set-var x=<make-alist foo=bar bar=<make-alist foo=bar>>>
    <profiler::dump /tmp/alist.calls sort=calls>
    <profiler::dump /tmp/alist.time sort=time>
    <profiler::dump /tmp/alist.expense sort=expense>

    Known bugs: The total time doesn't really correctly reflect the amount of time spent processing the entire page -- the time displayed is additive, so it is always orders of magnitude larger than it should be. However, the time displayed for each function call is correct.

Edit Pointer
Function Index
Variable Index
Variable Editor


The META-HTML Reference Manual V2.0 Copyright © 1995, 1998, Brian J. Fox
Found a bug? Send mail to bug-manual@metahtml.org