@atexit.register
def print_counter():
    global counter
    global b
    print("counter = %d vs %d" % (counter, b["counters"][ct.c_int(0)].value))
dataset/ETHPy150Open iovisor/bcc/examples/tracing/trace_perf_output.py/print_counter/original