felixge / fgprof

🚀 fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together.
MIT License
2.81k stars 88 forks source link

Populate PeriodType appropriately #17

Closed brancz closed 1 year ago

brancz commented 2 years ago

PeriodType is intended to explain the kind of events between sampled occurrences. While not strictly required to be set, all the Go stdlib profilers populate it, and this patch sets it equivalent to the standard CPU profiles.

Resolves part of #16

felixge commented 1 year ago

Thanks for the patch. Sorry for the slow response. Noticed some accidental code duplication while reviewing this, so pushed a small fix for that before merging.