import profile
import cProfile

def nothing():
    return

def main():
    for i in range(1000):
        for j in range(1000):
            nothing()
return
cProfile.run('main()')
profile.run('main()')
cProfile taking a very long time