GETFROMSTACK(ustack, unsigned, pid, 0);
Starts performance monitoring for process given by pid
.
GETFROMSTACK(ustack, void *, buffer, 0);
GETFROMSTACK(ustack, size_t, sz, 1);
Reads gathered performance monitoring events.
Finishes performance monitoring.