2 comments

  1. Hey Peter,

    Would you mind posting the D code you used for profiling Eclipse?

    Jeroen

    Jeroenl

  2. It’s an example D script from Bryan Cantrills blog, I slightly modified it to work with the latest version of the java probes (what used to be djvm is dvm now):

    ———————————————————

    #pragma D option quiet

    dvm$target:::method-entry

    /copyinstr(arg1) == "<init>"/

    {

    @[basename(copyinstr(arg0))] = count();

    }

    profile:::tick-1sec

    {

    trunc(@, 20);

    printf("%-70s %8sn", "CLASS", "COUNT");

    printa("%-70s %8@dn", @);

    printf("n");

    clear(@);

    }

    ———————————————————

    Peter Hendriks

Comments are closed.