diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-09-18 19:38:22 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-09-18 19:38:22 +0200 |
commit | 9b21d419cc82f366a3c0e43f74a7ddc972dc8185 (patch) | |
tree | 8714c9563788495f0dfd865836e6376b66ce4935 | |
parent | 4d6fbde1c97fe9e296bc45818eabf49f6f2f83fb (diff) | |
download | python-lxml-9b21d419cc82f366a3c0e43f74a7ddc972dc8185.tar.gz |
Also disable profiling for critical functions to fix crashes in test cases.
-rw-r--r-- | src/lxml/proxy.pxi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lxml/proxy.pxi b/src/lxml/proxy.pxi index 0536bfc2..3c6e3068 100644 --- a/src/lxml/proxy.pxi +++ b/src/lxml/proxy.pxi @@ -5,6 +5,7 @@ # the Python class. @cython.linetrace(False) +@cython.profile(False) cdef inline _Element getProxy(xmlNode* c_node): u"""Get a proxy for a given node. """ @@ -16,6 +17,7 @@ cdef inline _Element getProxy(xmlNode* c_node): @cython.linetrace(False) +@cython.profile(False) cdef inline bint hasProxy(xmlNode* c_node): if c_node._private is NULL: return False @@ -23,6 +25,7 @@ cdef inline bint hasProxy(xmlNode* c_node): @cython.linetrace(False) +@cython.profile(False) cdef inline int _registerProxy(_Element proxy, _Document doc, xmlNode* c_node) except -1: u"""Register a proxy and type for the node it's proxying for. @@ -36,6 +39,7 @@ cdef inline int _registerProxy(_Element proxy, _Document doc, @cython.linetrace(False) +@cython.profile(False) cdef inline int _unregisterProxy(_Element proxy) except -1: u"""Unregister a proxy for the node it's proxying for. """ |