MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Profiler::Span Struct Reference

A single Phase run. More...

#include <mim/util/profile.h>

Public Member Functions

Duration elapsed () const

Public Attributes

std::string name
Clock::time_point start
Clock::time_point stop
size_t depth
 Nesting level; a root Phase has depth 0.
size_t parent
 Index of the enclosing Span in Profiler::spans, or Profiler::No_Parent for a root.
Vector< std::pair< std::string, uint64_t > > counters
 Custom counters reported by the Phase (insertion order).

Detailed Description

A single Phase run.

Definition at line 32 of file profile.h.

Member Function Documentation

◆ elapsed()

Duration mim::Profiler::Span::elapsed ( ) const
inline

Definition at line 40 of file profile.h.

References start, and stop.

Member Data Documentation

◆ counters

Vector<std::pair<std::string, uint64_t> > mim::Profiler::Span::counters

Custom counters reported by the Phase (insertion order).

Definition at line 38 of file profile.h.

◆ depth

size_t mim::Profiler::Span::depth

Nesting level; a root Phase has depth 0.

Definition at line 36 of file profile.h.

◆ name

std::string mim::Profiler::Span::name

Definition at line 33 of file profile.h.

◆ parent

size_t mim::Profiler::Span::parent

Index of the enclosing Span in Profiler::spans, or Profiler::No_Parent for a root.

Definition at line 37 of file profile.h.

◆ start

Clock::time_point mim::Profiler::Span::start

Definition at line 34 of file profile.h.

Referenced by elapsed().

◆ stop

Clock::time_point mim::Profiler::Span::stop

Definition at line 35 of file profile.h.

Referenced by elapsed().


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