I am trying to profile a part of my program. The pattern is like the following:
def de():
def abc():
print("123")
cProfile.run('abc()')
When I am trying to run this program, I got an error: File "", line 1, in NameError: name 'abc' is not defined
Is there anyway to work around this error?