https://github.com/JuliaLang/julia
Raw File
Tip revision: 5bd2a572b82f0841643a75373b7d218c02297b49 authored by Jeff Bezanson on 17 April 2024, 01:01:56 UTC
narrow which precompile calls count as code roots
Tip revision: 5bd2a57
gc_simple.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
{
    @start[pid] = nsecs;
}

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

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