MLIR  14.0.0git
Classes | Namespaces | Typedefs | Functions | Variables
Timing.cpp File Reference
#include "mlir/Support/Timing.h"
#include "mlir/Support/ThreadLocalCache.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/RWMutex.h"
#include "llvm/Support/Threading.h"
#include "llvm/Support/raw_ostream.h"
#include <atomic>
#include <chrono>
Include dependency graph for Timing.cpp:

Go to the source code of this file.

Classes

class  mlir::detail::TimingManagerImpl
 Private implementation details of the TimingManager. More...
 
class  mlir::detail::DefaultTimingManagerImpl
 Implementation details of the DefaultTimingManager. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::detail
 

Typedefs

using DisplayMode = DefaultTimingManager::DisplayMode
 

Functions

static void printTimeEntry (raw_ostream &os, unsigned indent, StringRef name, TimeRecord time, TimeRecord total)
 Utility to print a single line entry in the timer output. More...
 
static void printTimeHeader (raw_ostream &os, TimeRecord total)
 Utility to print the timer heading information. More...
 

Variables

constexpr llvm::StringLiteral kTimingDescription
 
static llvm::ManagedStatic< DefaultTimingManagerOptions > options
 

Typedef Documentation

◆ DisplayMode

Definition at line 33 of file Timing.cpp.

Function Documentation

◆ printTimeEntry()

static void printTimeEntry ( raw_ostream &  os,
unsigned  indent,
StringRef  name,
TimeRecord  time,
TimeRecord  total 
)
static

Utility to print a single line entry in the timer output.

Definition at line 141 of file Timing.cpp.

◆ printTimeHeader()

static void printTimeHeader ( raw_ostream &  os,
TimeRecord  total 
)
static

Utility to print the timer heading information.

Definition at line 148 of file Timing.cpp.

References kTimingDescription, and max().

Variable Documentation

◆ kTimingDescription

constexpr llvm::StringLiteral kTimingDescription
Initial value:
=
"... Execution time report ..."

Definition at line 35 of file Timing.cpp.

Referenced by printTimeHeader().

◆ options

llvm::ManagedStatic<DefaultTimingManagerOptions> options
static

Definition at line 554 of file Timing.cpp.

Referenced by mlir::registerDefaultTimingManagerCLOptions().