Integrated: bot: add performance metrics for work items

Erik Helin ehelin at openjdk.java.net
Fri May 28 09:30:28 UTC 2021


On Wed, 26 May 2021 13:51:02 GMT, Erik Helin <ehelin at openjdk.org> 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 openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/00ada5d5f0e0e2a7f7d88a962c627db6d9095174
Stats:     96 lines in 2 files changed: 95 ins; 0 del; 1 mod

bot: add performance metrics for work items

Reviewed-by: erikj

-------------

PR: https://git.openjdk.java.net/skara/pull/1171


More information about the skara-dev mailing list