aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/__tracer.pxd
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
commit4212164e91ba2f49583cf44ad623a29b36db8f77 (patch)
tree47aefe3c0162f03e0c823b43873356f69c1cd636 /python/gevent/__tracer.pxd
parent6ca20ff7010f2bafc7fefcb8cad982be27a8aeae (diff)
downloadyt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.lz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.xz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.zip
Windows: Use 32-bit distribution of python
Diffstat (limited to 'python/gevent/__tracer.pxd')
-rw-r--r--python/gevent/__tracer.pxd43
1 files changed, 43 insertions, 0 deletions
diff --git a/python/gevent/__tracer.pxd b/python/gevent/__tracer.pxd
new file mode 100644
index 0000000..454147e
--- /dev/null
+++ b/python/gevent/__tracer.pxd
@@ -0,0 +1,43 @@
+cimport cython
+
+cdef sys
+cdef traceback
+
+cdef settrace
+cdef getcurrent
+
+cdef format_run_info
+
+cdef perf_counter
+cdef gmctime
+
+
+cdef class GreenletTracer:
+ cpdef readonly object active_greenlet
+ cpdef readonly object previous_trace_function
+ cpdef readonly Py_ssize_t greenlet_switch_counter
+
+ cdef bint _killed
+
+ cpdef _trace(self, str event, tuple args)
+
+ @cython.locals(did_switch=bint)
+ cpdef did_block_hub(self, hub)
+
+ cpdef kill(self)
+
+@cython.internal
+cdef class _HubTracer(GreenletTracer):
+ cpdef readonly object hub
+ cpdef readonly double max_blocking_time
+
+
+cdef class HubSwitchTracer(_HubTracer):
+ cpdef readonly double last_entered_hub
+
+cdef class MaxSwitchTracer(_HubTracer):
+ cpdef readonly double max_blocking
+ cpdef readonly double last_switch
+
+ @cython.locals(switched_at=double)
+ cpdef _trace(self, str event, tuple args)