Displaying 2 results from an estimated 2 matches for "tsfrac".
Did you mean:
sfrac
2009 Sep 09
10
dtrace overhead and proper measuring technique
...ts = 0;
}
pid$target::nsMenuX??MenuConstruct*:entry
{
self->ts = timestamp;
self->vts = vtimestamp;
}
pid$target::nsMenuX??MenuConstruct*:return
/self->ts/
{
this->ts = timestamp - self->ts;
this->vts = vtimestamp - self->vts;
@tsint = sum(this->ts / 1000000);
@tsfrac = sum(this->ts % 1000000);
@vtsint = sum(this->vts / 1000000);
@vtsfrac = sum(this->vts % 1000000);
@n = count();
self->ts = 0;
self->vts = 0;
/*ustack();*/
}
END
{
t = timestamp;
printa("elapsed: %@u.%@06ums\n", @tsint, @tsfrac);
printa("cpu : %@...
2009 Sep 09
4
usdt probes vs pid$target
...t;\n");
printf("# roots: %u\n", self->roots);
printf("elapsed: %u.%06ums\n", this->ts / 1000000, this->ts %
1000000);
printf("cpu : %u.%06ums\n", this->vts / 1000000, this->vts %
1000000);
@tsint = sum(this->ts / 1000000);
@tsfrac = sum(this->ts % 1000000);
@vtsint = sum(this->vts / 1000000);
@vtsfrac = sum(this->vts % 1000000);
@n = count();
self->ts = 0;
self->vts = 0;
ustack();
}
END
{
t = timestamp;
printf("\n\n----------------------\n");
printa("elapsed: %@u.%@...