rocksdb/trace_replay
haoyuhuang 705b8eecb4 Add more callers for table reader. (#5454)
Summary:
This PR adds more callers for table readers. These information are only used for block cache analysis so that we can know which caller accesses a block.
1. It renames the BlockCacheLookupCaller to TableReaderCaller as passing the caller from upstream requires changes to table_reader.h and TableReaderCaller is a more appropriate name.
2. It adds more table reader callers in table/table_reader_caller.h, e.g., kCompactionRefill, kExternalSSTIngestion, and kBuildTable.

This PR is long as it requires modification of interfaces in table_reader.h, e.g., NewIterator.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5454

Test Plan: make clean && COMPILE_WITH_ASAN=1 make check -j32.

Differential Revision: D15819451

Pulled By: HaoyuHuang

fbshipit-source-id: b6caa704c8fb96ddd15b9a934b7e7ea87f88092d
2019-06-20 14:31:48 -07:00
..
block_cache_tracer.cc Add more callers for table reader. (#5454) 2019-06-20 14:31:48 -07:00
block_cache_tracer.h Add more callers for table reader. (#5454) 2019-06-20 14:31:48 -07:00
block_cache_tracer_test.cc Add more callers for table reader. (#5454) 2019-06-20 14:31:48 -07:00
trace_replay.cc Add block cache tracer. (#5410) 2019-06-06 11:24:39 -07:00
trace_replay.h Add block cache tracer. (#5410) 2019-06-06 11:24:39 -07:00