tokio$1:::task-spawn
{
task_poll_times[arg0] = 0;
task_spawn_times[arg0] = timestamp;
}
tokio$1:::task-poll-start
{
self->poll_start_ts = timestamp;
}
tokio$1:::task-poll-end
/self->poll_start_ts/
{
duration = timestamp - self->poll_start_ts;
@durations["task poll duration", copyinstr(arg1), arg2, arg3] = quantize(duration);
task_poll_times[arg0] += duration;
self->poll_start_ts = 0;
}
tokio$1:::task-terminate
{
@durations["task total lifetime", copyinstr(arg1), arg2, arg3] = quantize(timestamp - task_spawn_times[arg0]);
@durations["task active time", copyinstr(arg1), arg2, arg3] = quantize(task_poll_times[arg0]);
}