public final class AddressPenaltiesTraceReader extends TextTraceReader
AddressTraceReader where the trace files were augmented to include hit
and miss penalties.
Example line in this format: s 0x1fffff50 1 200 1200
The description of each part of the line by order from left to right:
TraceReader.KeyOnlyTraceReaderfilePath| Constructor and Description |
|---|
AddressPenaltiesTraceReader(String filePath) |
| Modifier and Type | Method and Description |
|---|---|
Set<Policy.Characteristic> |
characteristics()
The event features that this trace supports.
|
Stream<AccessEvent> |
events()
Creates a stream that lazily reads the trace source.
|
linesreadFilepublic AddressPenaltiesTraceReader(String filePath)
public Set<Policy.Characteristic> characteristics()
TraceReaderpublic Stream<AccessEvent> events()
TraceReader
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.