google / benchmark

A microbenchmark support library
Apache License 2.0
8.93k stars 1.62k forks source link

[FR] Add z/OS case to ThreadCPUUsage to avoid error #1718

Closed abhina-sree closed 8 months ago

abhina-sree commented 9 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

We are hitting the following error "Per-thread timing is not available on your system." because we do not support CLOCK_THREAD_CPUTIME_ID.

Describe the solution you'd like A clear and concise description of what you want to happen.

I will implement a solution similar to SOLARIS that calls ProcessCPUUsage instead

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. N/A

Additional context Add any other context or screenshots about the feature request here. N/A

LebedevRI commented 8 months ago

This has been fixed by https://github.com/google/benchmark/pull/1719.