Integrated: bot: add performance metrics for work items

Erik Helin ehelin at
Fri May 28 09:30:28 UTC 2021

On Wed, 26 May 2021 13:51:02 GMT, Erik Helin <ehelin at> wrote:

> Hi all,
> please review this patch that adds runtime performance metrics for work items. I have added three new gauges:
> - `skara_runner_cpu_time`
> - `skara_runner_user_time`
> - `skara_runner_allocated_bytes`
> All three are per work item and make use of the `ThreadMXBean` to set the gauges. We can use the methods in `ThreadMXBean` because the `Runnable` that is running on a thread in the thread pool cannot be preempted or moved to another thread, i.e. it will have the same "carrier" thread for its whole execution.
> Testing:
> - [x] Manual testing on Linux x64 using the mirror bot
> Thanks,
> Erik

This pull request has now been integrated.

Changeset: 00ada5d5
Author:    Erik Helin <ehelin at>
Stats:     96 lines in 2 files changed: 95 ins; 0 del; 1 mod

bot: add performance metrics for work items

Reviewed-by: erikj



More information about the skara-dev mailing list