Fix Sidekiq job CPU time
When measure Sidekiq job CPU time usage, `Process.times` is wrong because it counts all threads CPU time in current Sidekiq proces. Use `Process.clock_gettime(Process::CLOCK_THREAD_CPUTIME_ID)` instead Removed `system_s`, `user_s`, and `child_s` - since we can not get these values for the job thread. Added `cpu_s`, this is CPU time used by the job thread, including system time and user time
Showing
Please register or sign in to comment