spla
Classes | Namespaces | Macros
time_profiler.hpp File Reference
#include <atomic>
#include <chrono>
#include <map>
#include <ostream>
#include <string>
Include dependency graph for time_profiler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  spla::TimeProfilerLabel
 
struct  spla::TimeProfilerScope
 
class  spla::TimeProfiler
 Scope-based time profiler to measure perf of schedule tasks execution. More...
 

Namespaces

 spla
 

Macros

#define TIME_PROFILE_LABEL   __auto_profile_label
 
#define TIME_PROFILE_SUBLABEL   __auto_profile_sublabel
 
#define TIME_PROFILE_SUBSCOPE(name)
 
#define TIME_PROFILE_SCOPE(name)
 

Macro Definition Documentation

◆ TIME_PROFILE_LABEL

#define TIME_PROFILE_LABEL   __auto_profile_label

◆ TIME_PROFILE_SCOPE

#define TIME_PROFILE_SCOPE (   name)
Value:
static TimeProfilerLabel TIME_PROFILE_LABEL(nullptr, name, __FILE__, __FUNCTION__); \
TimeProfilerScope __auto_profile_scope(&TIME_PROFILE_LABEL);
#define TIME_PROFILE_LABEL
Definition: time_profiler.hpp:85

◆ TIME_PROFILE_SUBLABEL

#define TIME_PROFILE_SUBLABEL   __auto_profile_sublabel

◆ TIME_PROFILE_SUBSCOPE

#define TIME_PROFILE_SUBSCOPE (   name)
Value:
static TimeProfilerLabel TIME_PROFILE_SUBLABEL(&__auto_profile_label, name, __FILE__, __FUNCTION__); \
TimeProfilerScope __auto_profile_subscope(&TIME_PROFILE_SUBLABEL);
#define TIME_PROFILE_SUBLABEL
Definition: time_profiler.hpp:86