Skip to content

StreamingConfig

struct StreamingConfig

@brief Configuration for streaming trace loading

Controls how large trace files are loaded into the system. Can use either full-loading or memory-efficient streaming.

Variables

Name Description
enabled Enable streaming mode for large files - true: Use StreamingVCDTrace/StreamingCSVTrace/StreamingFSTTrace - false: Use regular VCDTrace/CSVTrace/FSTTrace (full load)
auto_threshold_bytes Threshold in bytes to automatically enable streaming Files larger than this will use streaming regardless of enabled flag Set to 0 to disable auto-detection
chunk_size_bytes Chunk size for streaming I/O operations Larger chunks = fewer I/O ops, more memory Smaller chunks = more I/O ops, less memory
cache_capacity_per_signal Per-signal cache capacity for streaming Number of values cached per signal Each value: ~48 bytes, so 1000 entries ~= 48 KB per signal
index_sample_rate Sparse index sample rate Lower values = smaller index but slower lookups Higher values = larger index but faster lookups
warm_cache_signals Warm cache on load with frequently accessed signals
report_cache_stats Enable cache statistics reporting

Functions

Name Description
should_stream Check if streaming should be used for a file

Variable Details

auto_threshold_bytes

size_t auto_threshold_bytes

Threshold in bytes to automatically enable streaming Files larger than this will use streaming regardless of enabled flag Set to 0 to disable auto-detection

cache_capacity_per_signal

size_t cache_capacity_per_signal

Per-signal cache capacity for streaming Number of values cached per signal Each value: ~48 bytes, so 1000 entries ~= 48 KB per signal

chunk_size_bytes

size_t chunk_size_bytes

Chunk size for streaming I/O operations Larger chunks = fewer I/O ops, more memory Smaller chunks = more I/O ops, less memory

enabled

bool enabled

Enable streaming mode for large files - true: Use StreamingVCDTrace/StreamingCSVTrace/StreamingFSTTrace - false: Use regular VCDTrace/CSVTrace/FSTTrace (full load)

index_sample_rate

size_t index_sample_rate

Sparse index sample rate Lower values = smaller index but slower lookups Higher values = larger index but faster lookups

report_cache_stats

bool report_cache_stats

Enable cache statistics reporting

warm_cache_signals

std::vector<std::string> warm_cache_signals

Warm cache on load with frequently accessed signals

Function Details

should_stream

bool should_stream(size_t file_size_bytes) const

Check if streaming should be used for a file