Python's profile module: <string>:1(?)
问题 I am using Python's (v2.4) profile module to profile a numpy script, and the following entry appears to account for the bulk of the execution time: ncalls tottime percall cumtime percall filename:lineno(function) 256/1 0.000 0.000 7.710 7.710 <string>:1(?) Unfortunately, its appearance makes it hard to Google. How do I go about figuring out what this is exactly? edit The profiler is run from the shell as follows: python -m profile -s cumulative script.py 回答1: Ignore this line. It is an