added gpr speed tracking

This commit is contained in:
Ayzen
2026-04-01 22:05:04 +03:00
parent 669205d8f8
commit 4b78c2808d
20 changed files with 1165 additions and 47 deletions
@@ -142,6 +142,7 @@ auto SweepOrchestrator::acquire_one_collection(
collection.collection_id = collection_id;
collection.monotonic_ns = ipc::current_monotonic_ns();
collection.traces.reserve(config_.run_combos.size());
collection.capture_start_ns = ipc::current_monotonic_ns();
bool interrupted = false;
for (const auto& combo : config_.run_combos) {
@@ -170,8 +171,13 @@ auto SweepOrchestrator::acquire_one_collection(
if (interrupted) {
// Do not emit partial collections when stop was requested mid-cycle.
collection.traces.clear();
collection.capture_start_ns = 0;
collection.capture_end_ns = 0;
return collection;
}
collection.capture_end_ns = collection.traces.empty() ? 0U : ipc::current_monotonic_ns();
return collection;
}