NordicHPC / sonar

Tool to profile usage of HPC resources by regularly probing processes.
GNU General Public License v3.0
8 stars 5 forks source link

Document logic behind cpu time measurement #166

Closed lars-t-hansen closed 7 months ago

lars-t-hansen commented 7 months ago

The reasoning behind bsdtime_ticks being the right value, and some of the pitfalls associated with it, are not documented in the code. Let's do so, because I just managed to confuse myself about that logic. For background, see https://github.com/NordicHPC/sonar/issues/68 and https://github.com/NordicHPC/sonar/pull/70.