MLIR  19.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 <optional>

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
 Detect if any of the given parameter types has a sub-element handler.
 

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 34 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 142 of file Timing.cpp.

◆ printTimeHeader()

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

Utility to print the timer heading information.

Definition at line 149 of file Timing.cpp.

References kTimingDescription.

Variable Documentation

◆ kTimingDescription

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

Definition at line 36 of file Timing.cpp.

Referenced by printTimeHeader().

◆ options

llvm::ManagedStatic<DefaultTimingManagerOptions> options
static