|
YAC 3.21.0
Yet Another Coupler
|
Bridge that turns YAC core instrumentation regions (see instrument.h) into nested YAC_PAK_EVENT_TYPE_REGION trace events, with the region name in the field column and no limit on nesting depth.
More...
#include "yac_pak.h"

Go to the source code of this file.
Functions | |
| void | yac_pak_instrument_begin (struct yac_pak *pak, yac_pak_trace_level_t level, char const *component, char const *grid) |
Begin a tracing window: record instrumented core regions until the matching yac_pak_instrument_end as YAC_PAK_EVENT_TYPE_REGION events on pak. | |
| void | yac_pak_instrument_end (void) |
| End the window opened by yac_pak_instrument_begin (clears the callbacks). Safe to call unconditionally: no-op if begin did not register anything. | |
Bridge that turns YAC core instrumentation regions (see instrument.h) into nested YAC_PAK_EVENT_TYPE_REGION trace events, with the region name in the field column and no limit on nesting depth.
The core callbacks are process-global, so the bridge scopes them to a single PUT/GET or enddef window (begin/end): only one window is ever active at a time, which keeps the events attributed to the right YAC PAK instance.
Definition in file yac_pak_instrument.h.
| void yac_pak_instrument_begin | ( | struct yac_pak * | pak, |
| yac_pak_trace_level_t | level, | ||
| char const * | component, | ||
| char const * | grid ) |
Begin a tracing window: record instrumented core regions until the matching yac_pak_instrument_end as YAC_PAK_EVENT_TYPE_REGION events on pak.
No-op unless region tracing at level is enabled (see yac_pak_region_trace_is_enabled). Must be paired with yac_pak_instrument_end. component and grid are not copied and must stay valid until then.
| [in] | pak | Target YAC PAK instance (may be NULL). |
| [in] | level | Event category for the region events. Callers pass YAC_PAK_TRACE_LEVEL_REGIONS. Any extra phase condition (e.g. YAC_PAK_TRACE_SETUP) is applied by the caller. |
| [in] | component | Component context (may be NULL). |
| [in] | grid | Grid context (may be NULL). |
Definition at line 63 of file yac_pak_instrument.c.


| void yac_pak_instrument_end | ( | void | ) |
End the window opened by yac_pak_instrument_begin (clears the callbacks). Safe to call unconditionally: no-op if begin did not register anything.
Definition at line 83 of file yac_pak_instrument.c.

