🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/metrics/metrics_aggregator.py

This commit is contained in:
rUv committed 2025-08-06 12:25:03 +00:00
1 parent 47d82d6d2a
commit 4a6bf265ef
3 files changed
+5 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-122329", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T12:23:29Z", "type": "pre-edit", "original_branch": "alpha-88"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-122330", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py", "timestamp": "2025-08-06T12:23:30Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 72 +++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754482960.json | 1 + .claude/checkpoints/1754482962.json | 1 + .../cli/__pycache__/main.cpython-312.pyc | Bin 36756 -> 36795 bytes benchmark/src/swarm_benchmark/cli/main.py | 3 + .../claude_flow_real_executor.cpython-312.pyc | Bin 25109 -> 27340 bytes .../core/__pycache__/models.cpython-312.pyc | Bin 18638 -> 18687 bytes .../real_benchmark_engine.cpython-312.pyc | Bin 14649 -> 15321 bytes claude-flow-wiki | 0 11 files changed, 81 insertions(+), 4 deletions(-) "}
@@ -199,10 +199,10 @@ class MetricsAggregator:
"""Aggregate process tracker metrics."""
summary = self._process_tracker.get_execution_summary()
metrics.total_processes = summary["total_executions"]
metrics.success_rate = summary["overall_success_rate"]
metrics.total_processes = summary.get("total_executions", 0)
metrics.success_rate = summary.get("overall_success_rate", 0.0)
metrics.error_rate = 1.0 - metrics.success_rate
metrics.total_output_size = summary["total_output_lines"]
metrics.total_output_size = summary.get("total_output_lines", 0)
if metrics.total_processes > 0:
metrics.average_output_size = metrics.total_output_size // metrics.total_processes