Raxol.PreCommit.Metrics (Raxol v2.0.1)

View Source

Performance metrics tracking for pre-commit checks.

Tracks and analyzes performance data over time to:

  • Identify slow checks
  • Detect performance regressions
  • Generate trend reports
  • Optimize check execution order

Summary

Functions

Clear metrics history.

Generate a performance report.

Get check execution order optimized by average time.

Get performance statistics for recent runs.

Record metrics for a pre-commit run.

Functions

clear_history()

Clear metrics history.

generate_report(opts \\ [])

Generate a performance report.

get_optimized_order(checks)

Get check execution order optimized by average time.

get_statistics(limit \\ 10)

Get performance statistics for recent runs.

record_run(results, total_elapsed, config \\ %{})

Record metrics for a pre-commit run.