Class AdaptSizeTraceReader

  • All Implemented Interfaces:
    TraceReader

    public final class AdaptSizeTraceReader
    extends TextTraceReader
    A reader for the trace files provided by the authors of the AdaptSize algorithm. See traces.

    The AdaptSize simulator treats identical keys with different weights as unique entries, rather than as an update to that entry's size. This behavior is emulated by a key hash.

    • Constructor Detail

      • AdaptSizeTraceReader

        public AdaptSizeTraceReader​(String filePath)
    • Method Detail

      • events

        public Stream<AccessEvent> events()
        Description copied from interface: TraceReader
        Creates a stream that lazily reads the trace source.

        If timely disposal of underlying resources is required, the try-with-resources construct should be used to ensure that the stream's close method is invoked after the stream operations are completed.

        Returns:
        a lazy stream of cache events