Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 46e39ff1f8dffaea8cf1e750cd7d170c2a49558b authored by Mariatta on 26 October 2020, 21:53:21 UTC
Let dependabot create PRs against the maintenance branches
Tip revision: 46e39ff
gc.stp
global tracing

probe process.mark("function__entry")
{
    funcname = user_string($arg2);

    if (funcname == "start") {
        tracing = 1;
    }
}

probe process.mark("gc__start"), process.mark("gc__done")
{
    if (tracing) {
        printf("%d\t%s:%ld\n", gettimeofday_us(), $$name, $arg1);
    }
}

probe process.mark("function__return")
{
    funcname = user_string($arg2);

    if (funcname == "start") {
        tracing = 0;
    }
}
back to top