perf icon indicating copy to clipboard operation
perf copied to clipboard

tentative golang.org/x/sys/unix/linux/perf package

Results 11 perf issues
Sort by recently updated
recently updated
newest added

This is a proposed API for making benchmark runners. For example: ```go var ( Result, v, x int ) func BenchmarkMultiply(b *testing.B) { defer perf.Benchmark(b).Stop() for i := 0; i...

Unfortunately acln.ro appears to be unavailable or misconfigured. Can we make the module available again? Currently it's not possible to call up the docs on https://pkg.go.dev/github.com/acln0/perf for example, it gives...

Previously, if poll returned HUP, we would immediately return ErrDisabled, but this means we could miss events if there are events waiting in the buffer. Fixes: #23

The ptrace API requires that you call it from the same thread, so starting the process must lock the thread until we're done with the ptrace API. Doc ref: https://pkg.go.dev/syscall#SysProcAttr...

In #25, I accidentally introduced an additional comment on `evwait(sawcommevfd)` in the testComm test. This was unintentional, and doesn't otherwise relate to the fixes introduced in that PR. This issue...

https://github.com/acln0/perf/blob/6861f4b5b828ac9ec30ec0eddc8d4fef199a3299/perf.go#L1142 In the sampling mode, I found the number of samples is dramatically reduced if preciseIP =1,2,3 instead of 0. Did I miss sth important?

I've been messing around with perf, using `inherit` to trace a process tree. What I've found is that when the process tree exits, we get HUP on the poll, and...

This is only a minor suggestion, but I found this confusing: https://github.com/acln0/perf/blob/239c48f711bc4741a1a6e4ab75edf78ca429a7cd/record_test.go#L219-L225 1. Variables/consts beginning with the name `err` are usually errors. 2. It refers to testErrDisabledProcessExist which doesn't exist....

From @pwaller: Calling `g.Add(perf.Instructions, perf.CPUCycles, perf.ContextSwitches, tracepoint)` on a Group with `ExcludeKernel = true` causes the tracepoint to not register any values. Perhaps the Configurator returned by Tracepoint could be...