zmitchell / proctrace

A high-level profiler for process-level events such as fork, exec, exit, setpgid, and setsid
https://proctrace.xyz
Apache License 2.0
41 stars 0 forks source link

Timestamp from bpftrace rolls over #8

Open zmitchell opened 2 months ago

zmitchell commented 2 months ago

If you leave the program running long enough, the timestamp rolls over and events are recorded out of order.

One way to mitigate this is to have a global counter in the bpftrace script, increment it on every event, and report it along with the rest of the event data. You can timestamp the event on the proctrace side, but I suspect that will be less accurate because it depends on what kind of load proctrace is under.