Module: Appom::Performance
- Defined in:
- lib/appom/performance.rb
Overview
Performance monitoring for Appom automation framework Tracks and analyzes performance metrics for test execution
Defined Under Namespace
Modules: MethodInstrumentation
Classes: Monitor
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.monitor ⇒ Object
361
362
363
|
# File 'lib/appom/performance.rb', line 361
def monitor
@monitor ||= Monitor.new
end
|
Class Method Details
.check_regressions(baseline_file, threshold_percent = 20) ⇒ Object
390
391
392
|
# File 'lib/appom/performance.rb', line 390
def check_regressions(baseline_file, threshold_percent = 20)
monitor.check_regressions(baseline_file, threshold_percent)
end
|
.export_metrics ⇒ Object
382
383
384
|
# File 'lib/appom/performance.rb', line 382
def export_metrics(**)
monitor.export_metrics(**)
end
|
.record_metric(name, duration) ⇒ Object
370
371
372
|
# File 'lib/appom/performance.rb', line 370
def record_metric(name, duration, **)
monitor.record_metric(name, duration, **)
end
|
.reset! ⇒ Object
386
387
388
|
# File 'lib/appom/performance.rb', line 386
def reset!
monitor.reset!
end
|
.stats(operation_name = nil) ⇒ Object
374
375
376
|
# File 'lib/appom/performance.rb', line 374
def stats(operation_name = nil)
monitor.stats(operation_name)
end
|
.summary ⇒ Object
378
379
380
|
# File 'lib/appom/performance.rb', line 378
def summary
monitor.summary
end
|
.time_operation(name, context = {}) ⇒ Object
366
367
368
|
# File 'lib/appom/performance.rb', line 366
def time_operation(name, context = {}, &)
monitor.time_operation(name, context, &)
end
|