Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 22 of 22) sorted by relevance

/rocksdb-6.9/monitoring/
Diostats_context.cc38 #define IOSTATS_CONTEXT_OUTPUT(counter) \ argument
39 if (!exclude_zero_counters || counter > 0) { \
40 ss << #counter << " = " << counter << ", "; \
Dstats_history_test.cc43 int counter = 0; in TEST_F() local
56 "DBImpl::DumpStats:1", [&](void* /*arg*/) { counter++; }); in TEST_F()
61 ASSERT_GE(counter, 1); in TEST_F()
65 int old_val = counter; in TEST_F()
69 ASSERT_EQ(counter, old_val); in TEST_F()
93 int counter = 0; in TEST_F() local
95 "DBImpl::PersistStats:Entry", [&](void* /*arg*/) { counter++; }); in TEST_F()
100 ASSERT_GE(counter, 1); in TEST_F()
129 int counter = 0; in TEST_F() local
131 "DBImpl::PersistStats:Entry", [&](void* /*arg*/) { counter++; }); in TEST_F()
[all …]
Dperf_context.cc418 #define PERF_CONTEXT_OUTPUT(counter) \ argument
419 if (!exclude_zero_counters || (counter > 0)) { \
420 ss << #counter << " = " << counter << ", "; \
423 #define PERF_CONTEXT_BY_LEVEL_OUTPUT_ONE_COUNTER(counter) \ argument
426 ss << #counter << " = "; \
428 if (!exclude_zero_counters || (kv.second.counter > 0)) { \
429 ss << kv.second.counter << "@level" << kv.first << ", "; \
/rocksdb-6.9/db/
Ddb_options_test.cc132 int counter = 0; in TEST_F() local
148 low_bytes_per_sync = counter; in TEST_F()
152 counter = 0; in TEST_F()
163 ASSERT_GT(counter, 5); in TEST_F()
164 ASSERT_LT(counter, 15); in TEST_F()
168 ASSERT_GT(low_bytes_per_sync, counter); in TEST_F()
182 int counter = 0; in TEST_F() local
194 low_bytes_per_sync = counter; in TEST_F()
198 counter = 0; in TEST_F()
203 ASSERT_GT(counter, 0); in TEST_F()
[all …]
Drepair.cc378 int counter = 0; in ConvertLogToTable() local
389 counter += WriteBatchInternal::Count(&batch); in ConvertLogToTable()
441 log, counter, meta.fd.GetNumber(), in ConvertLogToTable()
478 int counter = 0; in ScanTable() local
543 counter++; in ScanTable()
554 t->meta.fd.GetNumber(), counter, in ScanTable()
Dtransaction_log_impl.cc287 BatchCounter counter(current_batch_seq_); in UpdateCurrentWriteBatch() local
288 batch->Iterate(&counter); in UpdateCurrentWriteBatch()
289 current_last_seq_ = counter.sequence_; in UpdateCurrentWriteBatch()
Dlistener_test.cc850 int counter; member in ROCKSDB_NAMESPACE::ColumnFamilyHandleDeletionStartedListener
855 : cfs_(cfs), counter(0) { in ColumnFamilyHandleDeletionStartedListener()
861 counter++; in OnColumnFamilyHandleDeletionStarted()
863 int getCounter() { return counter; } in getCounter()
903 int counter() { return counter_; } in counter() function in ROCKSDB_NAMESPACE::BackgroundErrorListener
929 ASSERT_EQ(1, listener->counter()); in TEST_F()
961 ASSERT_EQ(1, listener->counter()); in TEST_F()
Ddb_test_util.h430 anon::AtomicCounter* counter, in NewRandomAccessFile()
433 counter_(counter), in NewRandomAccessFile()
473 anon::AtomicCounter* counter) in NewSequentialFile()
474 : target_(std::move(target)), counter_(counter) {} in NewSequentialFile()
Ddb_test.cc2372 std::atomic<int> counter[kNumThreads]; member
2386 int counter = 0; in MTThreadBody() local
2391 t->state->counter[id].store(counter, std::memory_order_release); in MTThreadBody()
2409 static_cast<int>(counter), cf, unique_id); in MTThreadBody()
2417 static_cast<int>(counter), cf, unique_id); in MTThreadBody()
2471 ASSERT_LE(c, t->state->counter[w].load(std::memory_order_acquire)); in MTThreadBody()
2483 counter++; in MTThreadBody()
2486 fprintf(stderr, "... stopping thread %d after %d ops\n", id, int(counter)); in MTThreadBody()
2526 mt.counter[id].store(0, std::memory_order_release); in TEST_P()
/rocksdb-6.9/java/jmh/src/main/java/org/rocksdb/jmh/
DPutBenchmarks.java108 public void put(final ComparatorBenchmarks.Counter counter) throws RocksDBException { in put() argument
109 final int i = counter.next(); in put()
DComparatorBenchmarks.java135 public void put(final Counter counter) throws RocksDBException { in put() argument
136 final int i = counter.next(); in put()
/rocksdb-6.9/utilities/transactions/
Dwrite_unprepared_transaction_test.cc172 std::atomic<int64_t> counter(0); in TEST_P() local
206 int64_t snapshot_num = counter.fetch_add(1); in TEST_P()
210 buf[1] = counter.fetch_add(1); in TEST_P()
218 snapshot_num = counter.fetch_add(1); in TEST_P()
Dwrite_prepared_txn.cc164 SubBatchCounter counter(*wpt_db_->GetCFComparatorMap()); in CommitInternal() local
165 auto s = working_batch->Iterate(&counter); in CommitInternal()
167 commit_batch_cnt = counter.BatchCount(); in CommitInternal()
Dwrite_unprepared_txn.cc557 SubBatchCounter counter(*wpt_db_->GetCFComparatorMap()); in CommitInternal() local
558 auto s = working_batch->Iterate(&counter); in CommitInternal()
560 commit_batch_cnt = counter.BatchCount(); in CommitInternal()
Dwrite_prepared_txn_db.cc158 SubBatchCounter counter(*GetCFComparatorMap()); in WriteInternal() local
159 auto s = batch->Iterate(&counter); in WriteInternal()
161 batch_cnt = counter.BatchCount(); in WriteInternal()
Dwrite_prepared_transaction_test.cc254 SubBatchCounter counter(comparators); in TEST() local
255 ASSERT_OK(batch.GetWriteBatch()->Iterate(&counter)); in TEST()
256 ASSERT_EQ(batch_cnt, counter.BatchCount()); in TEST()
/rocksdb-6.9/include/rocksdb/
Dfile_system.h131 for (auto counter : counters) { in ToString() local
132 ss << counter.first << " = " << counter.second << ","; in ToString()
/rocksdb-6.9/docs/_posts/
D2016-07-26-rocksdb-4-8-released.markdown43 …* Add monotonically increasing counter (DB property "rocksdb.current-super-version-number") that i…
D2014-05-14-lock.markdown29 …ock in order to find the latest super version and increase its reference counter. From the super v…
33 …super version and increase the reference count for that (dereference the counter is done in an ato…
D2014-06-27-avoid-expensive-locks-in-get.markdown27 `Ref()` simply increases the reference counter and returns “this” pointer. However, this simple ope…
/rocksdb-6.9/db/db_impl/
Ddb_secondary_test.cc208 std::atomic<int>& counter) in NewRandomAccessFile() argument
209 : target_(std::move(target)), files_closed_(counter) {} in NewRandomAccessFile()
/rocksdb-6.9/
DHISTORY.md113 … for GoodCompressionRatio), as seen in the `number.block.not_compressed` counter stat since versio…
337 * The counter stat `number.block.not_compressed` now also counts blocks not compressed due to poor …
792 * Add monotonically increasing counter (DB property "rocksdb.current-super-version-number") that in…