diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-04-25 12:28:31 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-04-25 12:28:31 -0400 |
| commit | 1957b2dd33b244754cd47db05f831a7627b8031e (patch) | |
| tree | da438aabd8ff188e2a3c94c69352a36ec243f730 /include/framework/scheduling/Task.h | |
| parent | 5a3d36fecabc8f220b19dcaea28a78f99b5244af (diff) | |
| download | dynamic-extension-1957b2dd33b244754cd47db05f831a7627b8031e.tar.gz | |
Scheduler statistics tracking update
The current scheme is really inefficient in terms
of retreival of the results, but keeps the critical
path mostly clear. It's probably worth it to do
a more organized tracking of the data as it comes
in, to avoid an n^2 statistics generation step
at the end.
Diffstat (limited to 'include/framework/scheduling/Task.h')
| -rw-r--r-- | include/framework/scheduling/Task.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/framework/scheduling/Task.h b/include/framework/scheduling/Task.h index 3dbc9f4..b2884c7 100644 --- a/include/framework/scheduling/Task.h +++ b/include/framework/scheduling/Task.h @@ -72,7 +72,6 @@ struct Task { } void operator()(size_t thrd_id) { - auto start = std::chrono::high_resolution_clock::now(); if (m_stats) { m_stats->job_begin(m_timestamp); } @@ -82,14 +81,6 @@ struct Task { if (m_stats) { m_stats->job_complete(m_timestamp); } - auto stop = std::chrono::high_resolution_clock::now(); - - if (m_stats) { - auto time = - std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start) - .count(); - m_stats->log_time_data(time, m_type); - } if (m_lk) { m_lk->unlock(); |