MLIR
20.0.0git
|
This class defines an observer that profiles events before and after execution on the provided stream. More...
#include "mlir/Debug/Observers/ActionProfiler.h"
Public Member Functions | |
ActionProfiler (raw_ostream &os) | |
~ActionProfiler () override | |
void | beforeExecute (const ActionActiveStack *action, Breakpoint *breakpoint, bool willExecute) override |
This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback. More... | |
void | afterExecute (const ActionActiveStack *action) override |
This method is called after the Action is executed, if it was executed. More... | |
Public Member Functions inherited from mlir::tracing::ExecutionContext::Observer | |
virtual | ~Observer ()=default |
This class defines an observer that profiles events before and after execution on the provided stream.
The events are stored in the Chrome trace event format.
Definition at line 25 of file ActionProfiler.h.
|
inline |
Definition at line 26 of file ActionProfiler.h.
|
inlineoverride |
Definition at line 31 of file ActionProfiler.h.
|
overridevirtual |
This method is called after the Action is executed, if it was executed.
It is not called if the action is skipped. Note that this method will be called from multiple threads concurrently when MLIR multi-threading is enabled.
Reimplemented from mlir::tracing::ExecutionContext::Observer.
Definition at line 29 of file ActionProfiler.cpp.
|
overridevirtual |
This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback.
The willExecute
argument indicates whether the action will be executed or not. Note that this method will be called from multiple threads concurrently when MLIR multi-threading is enabled.
Reimplemented from mlir::tracing::ExecutionContext::Observer.
Definition at line 24 of file ActionProfiler.cpp.