added --profiler

This commit is contained in:
roberto@natty32
2011-05-03 15:01:51 +02:00
parent 7cbe751a39
commit 93767335ca
6 changed files with 37 additions and 1 deletions
+5
View File
@@ -792,6 +792,11 @@ void uwsgi_python_init_apps() {
init_uwsgi_app(LOADER_EVAL, up.eval, uwsgi.wsgi_req, up.main_thread);
}
if (uwsgi.profiler) {
if (!strcmp(uwsgi.profiler, "pycall")) {
PyEval_SetProfile(uwsgi_python_profiler_call, NULL);
}
}
}