rocksdb/include/leveldb
Abhishek Kona 391885c4e4 stat's collection in leveldb
Summary:
Prototype stat's collection. Diff is a good estimate of what
the final code will look like.
A few assumptions :
  * Used a global static instance of the statistics object. Plan to pass
  it to each internal function. Static allows metrics only at app
  level.
  * In the Ticker's do not do any locking. Depend on the mutex at each
   function of LevelDB. If we ever remove the mutex, we should change
   here too. The other option is use atomic objects anyways as there
   won't be any contention as they will be always acquired only by one
   thread.
  * The counters are dumb, increment through lifecycle. Plan to use ods
    etc to get last5min stat etc.

Test Plan:
made changes in db_bench
Ran ./db_bench --statistics=1 --num=10000 --cache_size=5000
This will print the cache hit/miss stats.

Reviewers: dhruba, heyongqiang

Differential Revision: https://reviews.facebook.net/D6441
2012-11-08 13:55:49 -08:00
..
c.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
cache.h Print the block cache size in the LOG. 2012-09-29 21:39:19 -07:00
comparator.h A number of fixes: 2011-10-31 17:22:06 +00:00
db.h Add a readonly db 2012-11-07 14:19:48 -08:00
env.h Enable LevelDb to create a new log file if current log file is too large. 2012-10-26 14:55:02 -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
options.h Ability to invoke application hook for every key during compaction. 2012-11-05 16:02:13 -08:00
slice.h Support for java access to leveldb via leveldbjni. 2012-06-20 15:17:03 -07:00
statistics.h stat's collection in leveldb 2012-11-08 13:55:49 -08:00
status.h build shared libraries; updated version to 1.3; add Status accessors 2012-03-30 13:15:49 -07:00
table_builder.h Allow having different compression algorithms on different levels. 2012-10-29 11:48:09 -07:00
table.h Trigger read compaction only if seeks to storage are incurred. 2012-09-28 11:10:52 -07:00
write_batch.h A number of fixes: 2011-10-31 17:22:06 +00:00