MLIR
20.0.0git
|
An RAII-style wrapper around a timer that ensures the timer is properly started and stopped. More...
#include "mlir/Support/Timing.h"
Public Member Functions | |
TimingScope () | |
TimingScope (const Timer &other) | |
TimingScope (Timer &&other) | |
TimingScope (TimingScope &&other) | |
~TimingScope () | |
TimingScope & | operator= (TimingScope &&other) |
operator bool () const | |
Check if the timing scope actually contains a valid timer. More... | |
TimingScope (const TimingScope &)=delete | |
TimingScope & | operator= (const TimingScope &)=delete |
void | stop () |
Manually stop the timer early. More... | |
template<typename... Args> | |
TimingScope | nest (Args... args) |
Create a nested timing scope. More... | |
void | hide () |
Hide the timer in timing reports and directly show its children. More... | |
An RAII-style wrapper around a timer that ensures the timer is properly started and stopped.
|
inline |
|
inline |
Definition at line 275 of file Timing.h.
References mlir::Timer::start().
|
inline |
Definition at line 279 of file Timing.h.
References mlir::Timer::start().
|
inline |
|
inline |
|
delete |
|
inline |
Hide the timer in timing reports and directly show its children.
Definition at line 316 of file Timing.h.
References mlir::Timer::hide().
|
inline |
Create a nested timing scope.
This returns a new TimingScope
with a timer nested within the current scope. In this fashion, the time in this scope may be further subdivided in a more fine-grained fashion.
Definition at line 311 of file Timing.h.
References mlir::Timer::nest(), and TimingScope().
Referenced by performActions().
|
inlineexplicit |
|
delete |
|
inline |
|
inline |
Manually stop the timer early.
Definition at line 300 of file Timing.h.
References mlir::Timer::stop().
Referenced by operator=(), performActions(), and ~TimingScope().