From: Robert Bradshaw Date: Mon, 20 Jul 2009 23:29:54 +0000 (-0700) Subject: fix nogil profiling X-Git-Tag: 0.12.alpha0~224^2~1^2^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=872b80379e6f7513edafc73b0c8fbbde3e8d12aa;p=cython.git fix nogil profiling --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 3a821c37..a0ee977c 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1057,7 +1057,7 @@ class FuncDefNode(StatNode, BlockNode): self.entry.scope.is_c_class_scope) if code.globalstate.directives['profile'] is None: - profile = 'inline' not in self.modifiers + profile = 'inline' not in self.modifiers and not lenv.nogil else: profile = code.globalstate.directives['profile'] if profile and lenv.nogil: @@ -5788,7 +5788,7 @@ proto=""" # but maybe some other profilers don't. trace_utility_code = UtilityCode(proto=""" -#define CYTHON_TRACING 0 +#define CYTHON_TRACING 1 #define CYTHON_TRACING_REUSE_FRAME 0 #if CYTHON_TRACING