reports microseconds in python profilers

This commit is contained in:
roberto@precise64
2012-03-31 15:48:22 +02:00
parent 3612ea2186
commit 878e9cb9ba
5 changed files with 49 additions and 2 deletions
+3
View File
@@ -1081,6 +1081,9 @@ next:
if (!strcmp(uwsgi.profiler, "pycall")) {
PyEval_SetProfile(uwsgi_python_profiler_call, NULL);
}
else if (!strcmp(uwsgi.profiler, "pyline")) {
PyEval_SetTrace(uwsgi_python_tracer, NULL);
}
}
#endif