(sigil profile)
Profiling Module
Provides CPU and memory profiling for Sigil programs.
Exports
with-profilingprocedureRun 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-topprocedureGet top N entries sorted by self time (descending).
Returns a list of profile entries sorted by self-time, limited to N.
profile-reportprocedurePrint a formatted profiling report.
Displays the top N functions by self time with CPU and memory stats.