Magic_traceSourceThe magic-trace tool can work with any binary, but using these functions allows you to easily mark places in your code to take a snapshot, and enables additional features like passing a value and marking the start of a duration.
This is the default symbol that the magic-trace command will attach to and use to take a snapshot. Use it if you want to take a snapshot based on custom logic, and it will save you the step of selecting the symbol you want to stop on.
It's an external C function that does nothing and should be very fast to call. It's only a C function to ensure it has a stable and exact symbol.
Passes an integer along that will show up in the resulting trace
Passes both the start tsc for the operation and an argument.
Mark the start time of some operation which may lead to a snapshot.
Intended for use like so: