Sha256: 9aea21c9956df7cdd0a04e1a8acaa2abc8dda6a79dc27f449f82e7c978424c09
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
#!/usr/sbin/dtrace -s /* time.d */ /* http://watson1978.github.com/MacRuby-DoJo/blog/2012/04/15/dtrace/ */ #pragma D option quiet macruby$target:::method-entry /copyinstr(arg0) != "TopLevel"/ { self->starttime = walltimestamp / 1000; } macruby$target:::method-return /copyinstr(arg0) != "TopLevel"/ { @invoked_time[copyinstr(arg0), copyinstr(arg1)] = sum((walltimestamp / 1000) - self->starttime); } END { printf("\n"); printf("%30s#%-30s %s\n", "CLASS", "METHOD", "TOTAL TIME µsec"); printf("--------------------------------------------------------------------------------\n"); printa("%30s#%-30s %@d\n", @invoked_time); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-dtrace-0.1.1 | dtrace/time.d |
motion-dtrace-0.1.0 | dtrace/time.d |