Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (20 sloc) 0.42 kB
#!/usr/sbin/dtrace -s
/*
* jsgc.d JavaScript Garbage Collect trace.
*
* $Id: jsgc.d 3 2011-11-11 01:30:08Z brendan $
*
* Brendan Gregg - testing github.
*/
#pragma D option quiet
pid$target::JS_GC:entry
{
self->vstart = vtimestamp;
}
pid$target::JS_GC:return
/self->vstart/
{
this->oncpu = (vtimestamp - self->vstart) / 1000000;
printf("%Y GC: %d CPU ms\n", walltimestamp, this->oncpu);
self->vstart = 0;
}
Jump to Line
Something went wrong with that request. Please try again.