class openvino::itt::TaskChain

Overview

Used to annotate a sequence of sections of code which would be named at runtime. More…

#include <itt.hpp>

template <domain_t(\*)() domain>
class TaskChain
{
public:
    // construction

    TaskChain(handle_t taskHandle, std::string&& prefix);

    // methods

    void next(handle_t taskHandle);
    std::string taskName() const;
    std::string taskNameOrHandle(const std::string& name) const;
    handle_t taskNameOrHandle(handle_t handle) const;
    void skip();
};

Detailed Documentation

Used to annotate a sequence of sections of code which would be named at runtime.

Parameters:

The

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

Construction

TaskChain(handle_t taskHandle, std::string&& prefix)

Construct TaskChain with defined annotation handle.

Methods

void next(handle_t taskHandle)

Ends the previous task from the chain and starts a new one with the given annotation handle.