class

CogUtil::PerformanceProfiler

Inherits Reference < Object

Core performance profiler with CPU, memory, and timing metrics

Class methods

current_session

Get current profiling session (for monitoring purposes)

end_session

End current profiling session and return metrics

export_metrics

Export metrics to JSON for external analysis

generate_report

Generate comprehensive performance report

profile(name : String, &)

Profile a code block with automatic timing and metrics collection

profile_iterations(name : String, iterations : Int32, &)

Profile multiple iterations of a code block for statistical analysis

profile_memory_allocation(name : String, &)

Memory allocation profiler

start_session

Start a new profiling session

Nested types