class
Azu::DevelopmentTools::MemoryLeakDetector
- Azu::DevelopmentTools::MemoryLeakDetector
- Reference
- Object
Overview
Memory leak detection utilities
Defined in:
azu/development_tools.crConstructors
Instance Method Summary
-
#analyze_leak(start_snapshot : MemorySnapshot | Nil = nil, end_snapshot : MemorySnapshot | Nil = nil) : LeakAnalysis
Analyze memory usage between two snapshots
-
#recent_snapshots(limit : Int32 = 100) : Array(MemorySnapshot)
Get recent snapshots
-
#report : String
Generate memory report
-
#start_monitoring(interval : Time::Span = 30.seconds)
Start memory monitoring
-
#stop_monitoring
Stop memory monitoring
-
#take_snapshot : MemorySnapshot
Take a memory snapshot
Constructor Detail
Instance Method Detail
def analyze_leak(start_snapshot : MemorySnapshot | Nil = nil, end_snapshot : MemorySnapshot | Nil = nil) : LeakAnalysis
#
Analyze memory usage between two snapshots
Get recent snapshots