

def countFrames(trace):
    n = 0
    for event in trace.events:
        if library.functions[event.name].isFrameMarker:
            n += 1
    return n

dataset/ETHPy150Open skyostil/tracy/src/analyzer/tools/spandex2c.py countFrames/original