Revision d8c225007498a68d1a1c9f3229d0dbc11b98f0cf authored by Gabriel Baraldi on 11 February 2023, 11:07:34 UTC, committed by GitHub on 11 February 2023, 11:07:34 UTC
* Run dsymutil on pkgimgs for apple platforms +
LLD bump to get dsymutil from the jll
1 parent 6cbcee9
Raw File
gc_all.bt
#!/usr/bin/env bpftrace

BEGIN
{
    printf("Tracing Julia GC Times... Hit Ctrl-C to end.\n");
}

usdt:usr/lib/libjulia-internal.so:julia:gc__begin
{
    $now = nsecs;
    @time[pid] = $now;
    @start[pid] = $now;
}

usdt:usr/lib/libjulia-internal.so:julia:gc__stop_the_world
/@start[pid]/
{
    $now = nsecs;
    @stop_the_world_usecs[pid] = hist(($now - @time[pid]) / 1000);
    @time[pid] = $now;
}

usdt:usr/lib/libjulia-internal.so:julia:gc__end
/@start[pid]/
{
    $now = nsecs;
    @gc_total_usecs[pid] = hist(($now - @start[pid]) / 1000);
    @gc_phase_usecs[pid] = hist(($now - @time[pid]) / 1000);
    @time[pid] = $now;
    delete(@start[pid]);
}

usdt:usr/lib/libjulia-internal.so:julia:gc__finalizer
/@time[pid]/
{
    @finalizer[pid] = hist((nsecs - @time[pid]) / 1000);
    delete(@time[pid]);
}

END
{
    clear(@start);
    clear(@time);
}
back to top