• Skip Montanaro's avatar
    Refactor common code out of globaltrace_trackcallers() and · 5bfd9849
    Skip Montanaro authored
    globaltrace_countfuncs() into file_module_function_of().
    
    In that function use Michael Hudson's suggestion of gc.get_referrers() to
    back up from the code object to a function, then to a class's dict and
    finally to a class object if one exists.
    5bfd9849
trace.py 28.3 KB