added gpr speed tracking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user