Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: expose internal/trace package available as non internal package #38971
This is a feature request, not a bug.
I'm helping to build conprof, which is a continuous profiling application similiar to Google Wide Profiling. We would like to add support for Go's trace profiles (typically /debug/pprof/trace endpoint).
In order to do that we would need to have internal/trace package to be exposed.
Related conprof issue: conprof/conprof#46
internal/trace and the trace format itself almost certainly need to be rewritten to make it easier to load only a subset of the file. The current format basically requires loading the entire file to do anything useful, and that fails for large traces.
We should definitely not expose internal/trace in its current form. It's fine to copy if you need something soon.