Struct PhaseTimer

Nested Relationships

Nested Types

Struct Documentation

struct PhaseTimer

diagnostic (analysis-only, off by default): scoped wall-clock timer that accumulates elapsed time into named buckets, for locating where the (single-threaded) ordered-executor driver spends time. Times are inclusive (a region’s time includes any nested regions and any TA dispatch inside it), so compare siblings and drill into the hot one. Env gate SEQUANT_UT_PHASE; inert when unset. Single-threaded only.

Public Static Functions

static inline bool enabled() noexcept
static inline std::function<void()> &fence_hook() noexcept
static inline std::size_t &barrier_count() noexcept
static inline std::uint64_t &barrier_ns() noexcept
static inline void barrier() noexcept
static inline std::map<std::string, std::pair<std::uint64_t, std::uint64_t>> &acc() noexcept

Public Static Attributes

static Reporter reporter_ = {}
struct Reporter

Public Functions

inline ~Reporter()
struct Scope

Public Functions

inline explicit Scope(char const *n) noexcept
inline ~Scope()

Public Members

char const *name
std::chrono::steady_clock::time_point t0
bool on