Home
last modified time | relevance | path

Searched refs:GetTLSInstance (Results 1 – 14 of 14) sorted by relevance

/rocksdb-6.9/db_stress_tool/
Ddb_stress_listener.h111 if (length_read >= 1000000 || Random::GetTLSInstance()->OneIn(1000)) { in OnFileReadFinish()
124 if (length_write >= 1000000 || Random::GetTLSInstance()->OneIn(64)) { in OnFileWriteFinish()
131 return static_cast<bool>(Random::GetTLSInstance()->OneIn(1)); in ShouldBeNotifiedOnFileIO()
211 std::chrono::microseconds(Random::GetTLSInstance()->Uniform(5000))); in RandomSleep()
/rocksdb-6.9/monitoring/
Dfile_read_sample.h16 return (Random::GetTLSInstance()->Next() % kFileReadSampleRate == 307); in should_sample_file_read()
/rocksdb-6.9/util/
Drandom.cc25 Random* Random::GetTLSInstance() { in GetTLSInstance() function in ROCKSDB_NAMESPACE::Random
Dcore_local.h70 core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); in AccessElementAndIndex()
Drandom.h90 static Random* GetTLSInstance();
/rocksdb-6.9/test_util/
Dsync_point_impl.cc25 auto* r = Random::GetTLSInstance(); in TestKillRandom()
/rocksdb-6.9/utilities/persistent_cache/
Dhash_table_evictable.h81 uint32_t random = Random::GetTLSInstance()->Next();
/rocksdb-6.9/memtable/
Dskiplist.h282 auto rnd = Random::GetTLSInstance();
Dinlineskiplist.h430 auto rnd = Random::GetTLSInstance();
/rocksdb-6.9/table/block_based/
Dblock.h51 rnd_(Random::GetTLSInstance()->Uniform( in BlockReadAmpBitmap()
Dblock_based_table_builder.cc168 Random::GetTLSInstance()->OneIn((int)info.SampleForCompression()) && in CompressBlock()
/rocksdb-6.9/db/
Dwrite_thread.cc143 update_ctx = Random::GetTLSInstance()->OneIn(sampling_base); in AwaitState()
Ddb_sst_test.cc368 static_cast<uint64_t>(Random::GetTLSInstance()->Uniform(10))); in TEST_F()
Ddb_test_util.cc89 Random::GetTLSInstance()->Reset(0xdeadbeef); in DBTestBase()