• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

linxGnu / grocksdb / 6067355637

03 Sep 2023 11:32PM UTC coverage: 66.95% (+0.02%) from 66.93%
6067355637

push

github

web-flow
Adapt RocksDB 8.4.4 (#125)

3 of 3 new or added lines in 1 file covered. (100.0%)

3308 of 4941 relevant lines covered (66.95%)

0.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/perf_level.go
1
package grocksdb
2

3
// #include "rocksdb/c.h"
4
import "C"
5

6
// PerfLevel indicates how much perf stats to collect. Affects perf_context and iostats_context.
7
type PerfLevel int
8

9
const (
10
        // KUninitialized indicates unknown setting
11
        KUninitialized PerfLevel = 0
12
        // KDisable disables perf stats
13
        KDisable PerfLevel = 1
14
        // KEnableCount enables only count stats
15
        KEnableCount PerfLevel = 2
16
        // KEnableTimeExceptForMutex other than count stats,
17
        // also enable time stats except for mutexes
18
        KEnableTimeExceptForMutex PerfLevel = 3
19
        // KEnableTimeAndCPUTimeExceptForMutex other than time,
20
        // also measure CPU time counters. Still don't measure
21
        // time (neither wall time nor CPU time) for mutexes.
22
        KEnableTimeAndCPUTimeExceptForMutex PerfLevel = 4
23
        // KEnableTime enables count and time stats
24
        KEnableTime PerfLevel = 5
25
        // KOutOfBounds N.B. Must always be the last value!
26
        KOutOfBounds PerfLevel = 6
27
)
28

29
// SetPerfLevel sets the perf stats level for current thread.
30
func SetPerfLevel(level PerfLevel) {
×
31
        C.rocksdb_set_perf_level(C.int(level))
×
32
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc