tmm1 / stackprof

a sampling call-stack profiler for ruby 2.2+
MIT License
2.08k stars 128 forks source link

add `start_time_nsecs` to profile info #229

Open manuelfelipe opened 3 months ago

manuelfelipe commented 3 months ago

Extends the profile data structure with a new start_time_nsecs field holding a timestamp (in nanos) since EPOCH

Right now, it is impossible to tell when a profile was really capture, and while that is not really relevant when inspecting individual profiles, it definite is when it comes to usage in aggregates when performing any sort of 'continuous' profiling.

For most Shopify apps, we initially resorted to encode and try to parse the time from generated objects after capturing the profile, but that is turning out to be too brittle and hard to maintain due to the amount of workloads we have around