Sun, 09 Jun 2024 13:52:13 UTC | login

Information for build golang-github-hodgesds-perf-utils-0.2.5-1.fc33

ID194960
Package Namegolang-github-hodgesds-perf-utils
Version0.2.5
Release1.fc33
Epoch
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.
Built bydavidlt
State complete
Volume DEFAULT
StartedSat, 24 Apr 2021 06:57:04 UTC
CompletedSat, 24 Apr 2021 06:57:04 UTC
Tags
f33
f37
f38
RPMs
src
golang-github-hodgesds-perf-utils-0.2.5-1.fc33.src.rpm (info) (download)
noarch
golang-github-hodgesds-perf-utils-devel-0.2.5-1.fc33.noarch.rpm (info) (download)
Changelog * Wed Feb 17 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.5-1 - Initial package