sigildocs

(sigil profile)

Profiling Module

Provides CPU and memory profiling for Sigil programs.

Exports

Run THUNK with profiling enabled.

Clears profiling data, enables profiling, runs thunk, then stops profiling and returns the results.

Example:

(with-profiling (lambda () (fib 30)))
profile-topprocedure

Get top N entries sorted by self time (descending).

Returns a list of profile entries sorted by self-time, limited to N.

Print a formatted profiling report.

Displays the top N functions by self time with CPU and memory stats.