Skip to main content

Module trace

Module trace 

Source
Expand description

Query tracing and trace replay.

RocksDB can record the queries a DB serves into a trace file and later play that file back against a DB. This module holds the parts of that feature that are not methods on the DB: the options controlling what gets recorded (TraceOptions, BlockCacheTraceOptions, BlockCacheTraceWriterOptions), a reader for the raw records in a trace file (TraceReader), and the replay side (Replayer, ReplayOptions).

Wraps include/rocksdb/trace_reader_writer.h, include/rocksdb/utilities/replayer.h, and the TraceOptions and TraceFilterType declarations in include/rocksdb/options.h.

Structsยง

BlockCacheTraceOptions
Controls how much of the block cache access stream a block cache trace records.
BlockCacheTraceWriterOptions
Controls the file a block cache trace is written to.
ReplayOptions
Controls the pace and parallelism of a Replayer::replay run.
Replayer
Plays a trace file back against a DB.
TraceFilter
Which operation types tracing skips.
TraceOptions
Controls what a query trace, IO trace, or block cache trace records.
TraceReader
Reads the raw, still-encoded records of a trace file one at a time.