Create statistics.pxd

This commit is contained in:
iFA 2020-08-31 11:34:25 +02:00 committed by GitHub
parent 4186979026
commit 2f971e9caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
rocksdb/statistics.pxd Normal file
View file

@ -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+