rocksdb/include/leveldb
Haobo Xu d9dd2a1926 [RocksDB] Expose thread local perf counter for low overhead, per call level performance statistics.
Summary:
As title. No locking/atomic is needed due to thread local. There is also no need to modify the existing client interface, in order to expose related counters.

perf_context_test shows a simple example of retrieving the number of user key comparison done for each put and get call. More counters could be added later.

Sample output
./perf_context_test 1000000
==== Test PerfContextTest.KeyComparisonCount
Inserting 1000000 key/value pairs
...
total user key comparison get: 43446523
total user key comparison put: 8017877
max user key comparison get: 88939
avg user key comparison get:43

Basically, the current skiplist does well on average, but could perform poorly in extreme cases.

Test Plan: run perf_context_test <total number of entries to put/get>

Reviewers: dhruba

Differential Revision: https://reviews.facebook.net/D12225
2013-08-14 15:24:06 -07:00
..
arena.h Make arena block size configurable 2013-07-31 12:42:23 -07:00
c.h Fix poor error on num_levels mismatch and few other minor improvements 2013-01-25 15:37:26 -08:00
cache.h Codemod NULL to nullptr 2013-02-28 18:04:58 -08:00
compaction_filter.h Separate compaction filter for each compaction 2013-08-13 10:56:20 -07:00
comparator.h A number of fixes: 2011-10-31 17:22:06 +00:00
db.h Expand KeyMayExist to return the proper value if it can be found in memory and also check block_cache 2013-08-01 09:07:46 -07:00
env.h [RocksDB] Option for incremental sync 2013-06-18 15:00:32 -07:00
filter_policy.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
iterator.h A number of fixes: 2011-10-31 17:22:06 +00:00
ldb_tool.h [RocksDB] Expose LDB functioanality as a library call - clients can build their own LDB binary with additional options 2013-04-11 20:21:49 -07:00
memtablerep.h Make arena block size configurable 2013-07-31 12:42:23 -07:00
merge_operator.h [RocksDB] [MergeOperator] The new Merge Interface! Uses merge sequences. 2013-08-05 20:14:32 -07:00
options.h Prefix filters for scans (v4) 2013-08-13 14:04:56 -07:00
perf_context.h [RocksDB] Expose thread local perf counter for low overhead, per call level performance statistics. 2013-08-14 15:24:06 -07:00
slice_transform.h Prefix filters for scans (v4) 2013-08-13 14:04:56 -07:00
slice.h manifest_dump: Add --hex=1 option 2012-12-16 08:58:28 -08:00
statistics.h Counter for merge failure 2013-08-13 14:25:42 -07:00
status.h [Rocksdb] Support Merge operation in rocksdb 2013-05-03 16:59:02 -07:00
table_builder.h Fix all the lint errors. 2012-11-28 17:18:41 -08:00
transaction_log_iterator.h Do not allow Transaction Log Iterator to fall ahead when writer is writing the same file 2013-03-06 14:05:53 -08:00
types.h GetUpdatesSince API to enable replication. 2012-12-07 11:42:13 -08:00
universal_compaction.h Renamed 'hybrid_compaction' tp be "Universal Compaction'. 2013-07-03 15:47:53 -07:00
write_batch.h [RocksDB] Expose count for WriteBatch 2013-06-26 15:13:21 -07:00