MLIR  19.0.0git
Public Member Functions | List of all members
mlir::tracing::ExecutionContext::Observer Struct Reference

This abstract class defines the interface used to observe an Action execution. More...

#include "mlir/Debug/ExecutionContext.h"

+ Inheritance diagram for mlir::tracing::ExecutionContext::Observer:

Public Member Functions

virtual ~Observer ()=default
 
virtual void beforeExecute (const ActionActiveStack *action, Breakpoint *breakpoint, bool willExecute)
 This method is called before the Action is executed If a breakpoint was hit, it is passed as an argument to the callback. More...
 
virtual void afterExecute (const ActionActiveStack *action)
 This method is called after the Action is executed, if it was executed. More...
 

Detailed Description

This abstract class defines the interface used to observe an Action execution.

It allows to be notified before and after the callback is processed, but can't affect the execution.

Definition at line 87 of file ExecutionContext.h.

Constructor & Destructor Documentation

◆ ~Observer()

virtual mlir::tracing::ExecutionContext::Observer::~Observer ( )
virtualdefault

Member Function Documentation

◆ afterExecute()

virtual void mlir::tracing::ExecutionContext::Observer::afterExecute ( const ActionActiveStack action)
inlinevirtual

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 in mlir::tracing::ActionProfiler, and mlir::tracing::ActionLogger.

Definition at line 102 of file ExecutionContext.h.

◆ beforeExecute()

virtual void mlir::tracing::ExecutionContext::Observer::beforeExecute ( const ActionActiveStack action,
Breakpoint breakpoint,
bool  willExecute 
)
inlinevirtual

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 in mlir::tracing::ActionProfiler, and mlir::tracing::ActionLogger.

Definition at line 95 of file ExecutionContext.h.


The documentation for this struct was generated from the following file: