class

Azu::DevelopmentTools::Profiler

Inherits Reference < Object

Built-in profiler for Crystal applications

Constructors

new(enabled : Bool = false)
Source

Instance methods

clear

Clear all profile data

Source
enabled
Source
enabled=(enabled : Bool)

Enable/disable profiling

Source
entries

Get all profile entries

Source
profile(name : String, capture_stack : Bool = false, & : -> T) : T forall T

Profile a block of code

Source
report

Generate profile report

Source
stats

Get aggregated profile statistics

Source

Nested types