A simple app to demonstrate how to get the run time of a given thread in FreeBSD.
LICENSES | ||
fast_cpu_time.cpp | ||
fast_cpu_time.hpp | ||
helpers.hpp | ||
main.cpp | ||
Makefile | ||
procstat_cpu_time.cpp | ||
procstat_cpu_time.hpp | ||
README.md | ||
sysctl_cpu_time.cpp | ||
sysctl_cpu_time.hpp |
Example: Getting run time of a thread in FreeBSD
I wrote this example app when researching how to find the run time of a specific thread. The OpenJDK garbage collector implementations as well as other parts of the OpenJDK needs this information. Since I had written it, I figured I might as well share it with the community. Perhaps some will find it useful.
License
Copyright (c) 2025 The FreeBSD Foundation
Copyright (c) 2025 Eilertsens Kodeknekkeri
SPDX-License-Identifier: BSD-2-Clause
This code is shared under a BSD 2-Clause license. See the included license for details.