Wed, 03 Jun 2026 08:45:25 CST | login

Information for RPM golang-github-hodgesds-perf-utils-0.7.0-1.ocs23.src.rpm

ID199257
Namegolang-github-hodgesds-perf-utils
Version0.7.0
Release1.ocs23
Epoch
Archsrc
SummaryPerf Utilities for Go
Description This package is a go library for interacting with the perf subsystem in Linux. I had trouble finding a golang perf library so I decided to write this by using the linux’s perf as a reference. This library allows you to do things like see how many CPU instructions a function takes (roughly), profile a process for various hardware events, and other interesting things. Note that because the go scheduler can schedule a goroutine across many OS threads it becomes rather difficult to get an exact profile of an invididual goroutine. However, a few tricks can be used; first a call to runtime.LockOSThread to lock the current goroutine to an OS thread. Second a call to unix.SchedSetaffinity, with a CPU set mask set. Note that if the pid argument is set 0 the calling thread is used (the thread that was just locked). Before using this library you should probably read the perf_event_open man page which this library uses heavily. See this kernel guide for a tutorial how to use perf and some of the limitations.
Build Time2024-09-06 03:21:11 GMT
Size40.50 KB
7f29121019817911dd570c4dde192f9d
LicenseMIT
Buildrootdist-ocs23-epol9-build-277855-26164
Provides
golang-github-hodgesds-perf-utils-devel = 0.7.0-1.ocs23
Obsoletes No Obsoletes
Conflicts No Conflicts
Requires
go-rpm-macros
golang(golang.org/x/sys/unix)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
Recommends No Recommends
Suggests No Suggests
Supplements No Supplements
Enhances No Enhances
Files
1 through 2 of 2
Name ascending sort Size
golang-github-hodgesds-perf-utils.spec1.74 KB
perf-utils-0.7.0.tar.gz28.65 KB
Component of No Buildroots