Upstream software project

golang-github-hodgesds-perf-utils

Perf Utilities for Go

About golang-github-hodgesds-perf-utils

Perf Utilities for Go

This project links 3 native package records across 3 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

golang-github-hodgesds-perf-utils repository preview from GitHub
Project repository preview, supplied by GitHub. Open source repository
Debian 12 (Bookworm): 1 package records; Debian 13 (Trixie): 1 package records; Fedora 43: 1 package records. Catalog coverage diagram, not an application screenshot.golang-github-hodgesds-perf-utils: recorded package coverageDebian 12 (Bookworm)1 recordsDebian 13 (Trixie)1 recordsFedora 431 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
golang-github-hodgesds-perf-utils
Publisher
Not authoritatively mapped
Native package records
3
Operating systems
debian-12, debian-13, fedora-43
License expression
MIT
Source repository
Open source repository

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

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. This package contains the source code needed for building packages that reference the following Go import paths: – github.com/hodgesds/perf-utils

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

Debian 12 (Bookworm)

  1. Source: golang-github-hodgesds-perf-utils

Debian 13 (Trixie)

  1. Source: golang-github-hodgesds-perf-utils

Fedora 43

  1. Source: golang-github-hodgesds-perf-utils

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.