From 872b80379e6f7513edafc73b0c8fbbde3e8d12aa Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 20 Jul 2009 16:29:54 -0700 Subject: [PATCH] fix nogil profiling --- Cython/Compiler/Nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2