#include "Views/TimelineView.h"
#include <numeric>
namespace llvm {
namespace mca {
TimelineView::TimelineView(const MCSubtargetInfo &sti, MCInstPrinter &Printer,
llvm::ArrayRef<llvm::MCInst> S, unsigned Iterations,
unsigned Cycles)
: … { … }
void TimelineView::onReservedBuffers(const InstRef &IR,
ArrayRef<unsigned> Buffers) { … }
void TimelineView::onEvent(const HWInstructionEvent &Event) { … }
static raw_ostream::Colors chooseColor(unsigned CumulativeCycles,
unsigned Executions, int BufferSize) { … }
static void tryChangeColor(raw_ostream &OS, unsigned Cycles,
unsigned Executions, int BufferSize) { … }
void TimelineView::printWaitTimeEntry(formatted_raw_ostream &OS,
const WaitTimeEntry &Entry,
unsigned SourceIndex,
unsigned Executions) const { … }
void TimelineView::printAverageWaitTimes(raw_ostream &OS) const { … }
void TimelineView::printTimelineViewEntry(formatted_raw_ostream &OS,
const TimelineViewEntry &Entry,
unsigned Iteration,
unsigned SourceIndex) const { … }
static void printTimelineHeader(formatted_raw_ostream &OS, unsigned Cycles) { … }
void TimelineView::printTimeline(raw_ostream &OS) const { … }
json::Value TimelineView::toJSON() const { … }
}
}