| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Gauche has some basic built-in APIs to help developers to analyze the program.
| 6.23.1 Debugging aid | ||
| 6.23.2 Profiler API |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This macro prints expr in a source form, then evaluates it, then prints out the result(s), and returns them.
The special reader syntax #?=expr is expanded into
(debug-print expr). See Debugging, for the
details.
This parameter specifies the maximum width of information to be
printed by debug-print. If the information takes more
columns than the value of this parameter, it is truncated.
To show all the information, set #f to this parameter.
Retrieves source information attached to obj.
The source information is returned as a list of source file name
and an integer line number. If no source information is available
in obj, #f is returned.
Disassemble the compiled body of closure and print it. It may not be very useful unless you're tracking a compiler bug, or trying to tune the program to its limit.
If you're reading the disassembler output, keep in mind that the compiled code vector may have some dead code; they are produced by the jump optimization, but the compiler doesn't bother to eliminate them.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These are the functions to control Gauche's built-in profiler. See Using profiler for the explanation of the profiler.
Note that the profiler doesn't work correctly yet in multi-threaded program.
Starts the sampling profiler. If the profiler is already started, nothing is done.
Stop the sampling profiler, and save the sampled data into the internal structure. If there are already saved sampled data, the newly obtained data is added to it. If the profiler isn't running, nothing is done.
Stop the profiler if it is running. Then discard the saved sampled data.
Show the saved sampled data.
The keyword argument sort-by may be one of the symbols
time, count, or time-per-call, to specify
how the result should be sorted. The default is time.
The keyword argument max-rows specifies the max number of
rows to be shown. If it is #f, all the data is shown.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Shiro Kawai on October, 7 2008 using texi2html 1.78.