FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
fe::Profiler::Span Struct Reference

A single run. More...

#include <fe/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 Span has depth 0.
size_t parent
 Index of the enclosing Span in Profiler::spans, or Profiler::No_Parent for a root.
std::vector< std::pair< std::string, uint64_t > > counters
 Custom counters (insertion order).

Detailed Description

A single run.

Definition at line 31 of file profile.h.

Member Function Documentation

◆ elapsed()

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

Definition at line 39 of file profile.h.

References start, and stop.

Member Data Documentation

◆ counters

std::vector<std::pair<std::string, uint64_t> > fe::Profiler::Span::counters

Custom counters (insertion order).

Definition at line 37 of file profile.h.

◆ depth

size_t fe::Profiler::Span::depth

Nesting level; a root Span has depth 0.

Definition at line 35 of file profile.h.

◆ name

std::string fe::Profiler::Span::name

Definition at line 32 of file profile.h.

◆ parent

size_t fe::Profiler::Span::parent

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

Definition at line 36 of file profile.h.

◆ start

Clock::time_point fe::Profiler::Span::start

Definition at line 33 of file profile.h.

Referenced by elapsed().

◆ stop

Clock::time_point fe::Profiler::Span::stop

Definition at line 34 of file profile.h.

Referenced by elapsed().


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