Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace: when profiling, write sampling trace to put
Whenever we run under the profiling flag, we now collect sampling traces into .urb/put/trace/dump.txt. We take care to format the output in a way that's compatible with flamegraph tooling. Specifically, we avoid writing into the first couple lines of the file, and suffix every trace with a counter (always 1). (See also brendangregg/FlameGraph.) We have not yet cleaned up old code in u3t_samp. Co-authored-by: joemfb <[email protected]>
- Loading branch information