24 lines
506 B
C++
24 lines
506 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
|
|
namespace exe::executors::tp::fast {
|
|
|
|
struct WorkerMetrics {
|
|
size_t count_solved_tasks = 0;
|
|
size_t count_pick_lifo_slot = 0;
|
|
size_t count_task_from_local_queue = 0;
|
|
size_t count_grab_from_global_queue = 0;
|
|
size_t count_park = 0;
|
|
size_t count_spinning = 0;
|
|
size_t count_offload = 0;
|
|
size_t count_sleep_rejects = 0;
|
|
size_t count_stiling = 0;
|
|
};
|
|
|
|
struct PoolMetrics : WorkerMetrics {
|
|
// Your metrics goes here
|
|
};
|
|
|
|
} // namespace exe::executors::tp::fast
|