MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::OutputStrategy Class Referenceabstract

Facilities for printing timing reports to various output formats. More...

#include "mlir/Support/Timing.h"

Public Member Functions

 OutputStrategy (raw_ostream &os)
 
virtual ~OutputStrategy ()=default
 
virtual void printHeader (const TimeRecord &total)=0
 
virtual void printFooter ()=0
 
virtual void printTime (const TimeRecord &time, const TimeRecord &total)=0
 
virtual void printListEntry (StringRef name, const TimeRecord &time, const TimeRecord &total, bool lastEntry=false)=0
 
virtual void printTreeEntry (unsigned indent, StringRef name, const TimeRecord &time, const TimeRecord &total)=0
 
virtual void printTreeEntryEnd (unsigned indent, bool lastEntry=false)=0
 

Public Attributes

raw_ostream & os
 

Detailed Description

Facilities for printing timing reports to various output formats.

This is an abstract class that serves as the foundation for printing. Users can implement additional output formats by extending this abstract class.

Definition at line 351 of file Timing.h.

Constructor & Destructor Documentation

◆ OutputStrategy()

mlir::OutputStrategy::OutputStrategy ( raw_ostream &  os)
inline

Definition at line 353 of file Timing.h.

◆ ~OutputStrategy()

virtual mlir::OutputStrategy::~OutputStrategy ( )
virtualdefault

Member Function Documentation

◆ printFooter()

virtual void mlir::OutputStrategy::printFooter ( )
pure virtual

◆ printHeader()

virtual void mlir::OutputStrategy::printHeader ( const TimeRecord total)
pure virtual

◆ printListEntry()

virtual void mlir::OutputStrategy::printListEntry ( StringRef  name,
const TimeRecord time,
const TimeRecord total,
bool  lastEntry = false 
)
pure virtual

◆ printTime()

virtual void mlir::OutputStrategy::printTime ( const TimeRecord time,
const TimeRecord total 
)
pure virtual

◆ printTreeEntry()

virtual void mlir::OutputStrategy::printTreeEntry ( unsigned  indent,
StringRef  name,
const TimeRecord time,
const TimeRecord total 
)
pure virtual

◆ printTreeEntryEnd()

virtual void mlir::OutputStrategy::printTreeEntryEnd ( unsigned  indent,
bool  lastEntry = false 
)
pure virtual

Member Data Documentation

◆ os

raw_ostream& mlir::OutputStrategy::os

Definition at line 367 of file Timing.h.


The documentation for this class was generated from the following file: