@ -662,7 +662,7 @@ DEFINE_int32(thread_status_per_interval, 0,
" Takes and report a snapshot of the current status of each thread "
" when this is greater than 0. " ) ;
DEFINE_int32 ( perf_level , 0 , " Level of perf collection " ) ;
DEFINE_int32 ( perf_level , rocksdb : : PerfLevel : : kDisable , " Level of perf collection " ) ;
static bool ValidateRateLimit ( const char * flagname , double value ) {
const double EPSILON = 1e-10 ;
@ -3091,7 +3091,7 @@ class Benchmark {
thread - > stats . AddMessage ( msg ) ;
if ( FLAGS_perf_level > 0 ) {
if ( FLAGS_perf_level > rocksdb : : PerfLevel : : kDisable ) {
thread - > stats . AddMessage ( perf_context . ToString ( ) ) ;
}
}
@ -3159,7 +3159,7 @@ class Benchmark {
thread - > stats . AddBytes ( bytes ) ;
thread - > stats . AddMessage ( msg ) ;
if ( FLAGS_perf_level > 0 ) {
if ( FLAGS_perf_level > rocksdb : : PerfLevel : : kDisable ) {
thread - > stats . AddMessage ( perf_context . ToString ( ) ) ;
}
}
@ -3302,7 +3302,7 @@ class Benchmark {
found , read ) ;
thread - > stats . AddBytes ( bytes ) ;
thread - > stats . AddMessage ( msg ) ;
if ( FLAGS_perf_level > 0 ) {
if ( FLAGS_perf_level > rocksdb : : PerfLevel : : kDisable ) {
thread - > stats . AddMessage ( perf_context . ToString ( ) ) ;
}
}
@ -3939,7 +3939,7 @@ class Benchmark {
}
thread - > stats . AddMessage ( msg ) ;
if ( FLAGS_perf_level > 0 ) {
if ( FLAGS_perf_level > rocksdb : : PerfLevel : : kDisable ) {
thread - > stats . AddMessage ( perf_context . ToString ( ) ) ;
}
}