Class: Ukiryu::Models::ExecutionReport
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Ukiryu::Models::ExecutionReport
- Defined in:
- lib/ukiryu/models/execution_report.rb
Overview
Execution report containing metrics and timing information
Provides detailed metrics about the execution process including:
-
Stage timings (tool resolution, command building, execution)
-
Memory usage
-
Run environment information
Instance Method Summary collapse
-
#all_stages ⇒ Array<StageMetrics>
Get all stages in order.
-
#calculate_total ⇒ Object
Calculate total duration from all stages.
Instance Method Details
#all_stages ⇒ Array<StageMetrics>
Get all stages in order
43 44 45 |
# File 'lib/ukiryu/models/execution_report.rb', line 43 def all_stages [tool_resolution, command_building, execution, response_building].compact end |
#calculate_total ⇒ Object
Calculate total duration from all stages
33 34 35 36 37 38 |
# File 'lib/ukiryu/models/execution_report.rb', line 33 def calculate_total stages = [tool_resolution, command_building, execution, response_building] total = stages.compact.map(&:duration).sum @total_duration = total @formatted_total_duration = format_duration(total) end |