Voluntary and involuntary context switches

This commit is contained in:
flamingcow
2019-05-11 18:02:56 -07:00
parent 1eea8d42b7
commit 5b719ec74c
2 changed files with 21 additions and 13 deletions

View File

@@ -21,6 +21,8 @@ class UsageTracker {
std::chrono::nanoseconds wall_time_;
std::chrono::nanoseconds user_time_;
std::chrono::nanoseconds sys_time_;
uint64_t vol_ctxt_sw_ = 0;
uint64_t invol_ctxt_sw_ = 0;
std::chrono::steady_clock::time_point start_time_;
rusage start_usage_;