Class openvino::itt::ScopedRegion#

template<domain_t (*domain)()>
class ScopedRegion#

Used to annotate region of code which would be named at runtime using RAII.

Note

Uses ITT region begin/end. At most one region is active per thread; tasks started while a region is active attach to it as their parent.

Template Parameters:

Thedomain parameter is domain type which shoud be defined with OV_ITT_DOMAIN() macro.

Public Functions

inline ScopedRegion(handle_t handle) noexcept#

Construct ScopedRegion with defined annotation handle.

inline ScopedRegion(handle_t handle, const char *key, uint64_t value) noexcept#

Constructs a scoped region with metadata for ITT profiling.

Note

Region begins immediately and ends when object goes out of scope (RAII).

Note

The key string must remain valid for the region’s lifetime.

Parameters:
  • handle – Region identifier for profiling tools.

  • key – Metadata attribute name (e.g., “RequestID”).

  • value – Metadata numeric value associated with the key.

inline ~ScopedRegion() noexcept#

The ScopedRegion destructor closes or ends the region scope.