RFR: bot: add performance metrics for work items [v3]

Erik Helin ehelin at openjdk.java.net
Fri May 28 08:44:31 UTC 2021

> 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

Erik Helin has updated the pull request incrementally with one additional commit since the last revision:

  Fix conversion to seconds


  - all: https://git.openjdk.java.net/skara/pull/1171/files
  - new: https://git.openjdk.java.net/skara/pull/1171/files/497d1bca..bcd615d2

 - full: https://webrevs.openjdk.java.net/?repo=skara&pr=1171&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=skara&pr=1171&range=01-02

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/skara/pull/1171.diff
  Fetch: git fetch https://git.openjdk.java.net/skara pull/1171/head:pull/1171

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

More information about the skara-dev mailing list