|
MLIR 22.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. | |
| TimingScope (const TimingScope &)=delete | |
| TimingScope & | operator= (const TimingScope &)=delete |
| void | stop () |
| Manually stop the timer early. | |
| template<typename... Args> | |
| TimingScope | nest (Args... args) |
| Create a nested timing scope. | |
| void | hide () |
| Hide the timer in timing reports and directly show its children. | |
An RAII-style wrapper around a timer that ensures the timer is properly started and stopped.
|
inline |
Definition at line 274 of file Timing.h.
Referenced by nest(), operator=(), operator=(), TimingScope(), and TimingScope().
|
inline |
|
inline |
Definition at line 283 of file Timing.h.
References TimingScope().
|
inline |
|
delete |
References TimingScope().
|
inline |
|
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 TimingScope().
Referenced by performActions().
|
inlineexplicit |
|
delete |
References TimingScope().
|
inline |
Definition at line 286 of file Timing.h.
References stop(), and TimingScope().
|
inline |
Manually stop the timer early.
Definition at line 300 of file Timing.h.
Referenced by operator=(), performActions(), and ~TimingScope().