class
Azu::DevelopmentTools::Profiler
- Azu::DevelopmentTools::Profiler
- Reference
- Object
Overview
Built-in profiler for Crystal applications
Defined in:
azu/development_tools.crConstructors
Instance Method Summary
-
#clear
Clear all profile data
- #enabled : Bool
-
#enabled=(enabled : Bool)
Enable/disable profiling
-
#entries : Array(ProfileEntry)
Get all profile entries
-
#profile(name : String, capture_stack : Bool = false, & : -> T) : T forall T
Profile a block of code
-
#report : String
Generate profile report
-
#stats : Hash(String, Hash(String, Float64))
Get aggregated profile statistics
Constructor Detail
Instance Method Detail
def profile(name : String, capture_stack : Bool = false, & : -> T) : T forall T
#
Profile a block of code