1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/include/llvm/XRay
Dean Michael Berris 76f5aab534 [XRay] Use FDR Records+Visitors for Trace Loading
Summary:
In this change, we overhaul the implementation for loading
`llvm::xray::Trace` objects from files by using the combination of
specific FDR Record types and visitors breaking up the logic to
reconstitute an execution trace from flight-data recorder mode traces.

This change allows us to handle out-of-temporal order blocks as written
in files, and more consistently recreate an execution trace spanning
multiple blocks and threads. To do this, we use the `WallclockRecord`
associated with each block to maintain temporal order of blocks, before
attempting to recreate an execution trace.

The new addition in this change is the `TraceExpander` type which can be
thought of as a decompression/decoding routine. This allows us to
maintain the state of an execution environment (thread+process) and
create `XRayRecord` instances that fit nicely into the `Trace`
container. We don't have a specific unit test for the TraceExpander
type, since the end-to-end tests for the `llvm-xray convert` tools
already cover precisely this codepath.

This change completes the refactoring started with D50441.

Depends on D51911.

Reviewers: mboerger, eizan

Subscribers: mgorny, hiraditya, mgrang, llvm-commits

Differential Revision: https://reviews.llvm.org/D51912

llvm-svn: 341906
2018-09-11 06:45:59 +00:00
..
BlockIndexer.h [XRay] Use FDR Records+Visitors for Trace Loading 2018-09-11 06:45:59 +00:00
BlockPrinter.h [XRay] Add the llvm-xray fdr-dump implementation 2018-09-11 00:22:53 +00:00
BlockVerifier.h [XRay] Add a BlockVerifier visitor for FDR Records 2018-09-10 02:35:25 +00:00
FDRLogBuilder.h [XRay] FDRTraceWriter and FDR Trace Loading 2018-08-30 07:22:21 +00:00
FDRRecordConsumer.h [XRay] FDR Record Producer/Consumer Implementation 2018-08-31 08:04:56 +00:00
FDRRecordProducer.h [XRay] FDR Record Producer/Consumer Implementation 2018-08-31 08:04:56 +00:00
FDRRecords.h [XRay] Add TSC to NewCPUId Records 2018-09-11 06:36:51 +00:00
FDRTraceExpander.h [XRay] Use FDR Records+Visitors for Trace Loading 2018-09-11 06:45:59 +00:00
FDRTraceWriter.h [XRay] Make the FDRTraceWriter Endian-aware 2018-08-31 16:08:38 +00:00
FileHeaderReader.h [XRay] Refactor file header reading (NFC) 2018-08-22 07:37:55 +00:00
Graph.h
InstrumentationMap.h
Profile.h [XRay][llvm] Load XRay Profiles 2018-08-30 01:43:22 +00:00
RecordPrinter.h [XRay] Add a RecordPrinter visitor for FDR Records 2018-09-05 06:57:23 +00:00
Trace.h [XRay] Refactor loadTraceFile(...) into two (NFC) 2018-08-24 10:30:37 +00:00
XRayRecord.h
YAMLXRayRecord.h