From 2f971e9caa0c271e92608ced51cd934f0afae90d Mon Sep 17 00:00:00 2001 From: iFA Date: Mon, 31 Aug 2020 11:34:25 +0200 Subject: [PATCH] Create statistics.pxd --- rocksdb/statistics.pxd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rocksdb/statistics.pxd diff --git a/rocksdb/statistics.pxd b/rocksdb/statistics.pxd new file mode 100644 index 0000000..461c98b --- /dev/null +++ b/rocksdb/statistics.pxd @@ -0,0 +1,13 @@ +from libc.stdint cimport uint32_t, uint8_t +from std_memory cimport shared_ptr + +cdef extern from "rocksdb/statistics.h" namespace "rocksdb": + ctypedef enum StatsLevel: + kExceptHistogramOrTimers + kExceptTimers + kExceptDetailedTimers + kExceptTimeForMutex + kAll + + cdef cppclass Statistics: + void set_stats_level(StatsLevel) nogil except+