Show More
@@ -143,16 +143,3 b' def label(code):' | |||
|
143 | 143 | res = res.encode('latin-1') |
|
144 | 144 | |
|
145 | 145 | return res |
|
146 | ||
|
147 | ||
|
148 | if __name__ == '__main__': | |
|
149 | import os | |
|
150 | ||
|
151 | sys.argv = sys.argv[1:] | |
|
152 | if not sys.argv: | |
|
153 | print(b"usage: lsprof.py <script> <arguments...>", file=sys.stderr) | |
|
154 | sys.exit(2) | |
|
155 | sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0]))) | |
|
156 | stats = profile(execfile, sys.argv[0], globals(), locals()) | |
|
157 | stats.sort() | |
|
158 | stats.pprint() |
General Comments 0
You need to be logged in to leave comments.
Login now