SPH
Classes | Macros
Profiler.h File Reference

Tool to measure time spent in functions and profile the code. More...

#include "io/Logger.h"
#include "objects/wrappers/Optional.h"
#include "system/Platform.h"
#include "system/Timer.h"
#include <atomic>
#include <map>
#include <thread>

Go to the source code of this file.

Classes

struct  ScopedTimer
 Timer that reports the measured duration when being destroyed. More...
 

Macros

#define MEASURE_SCOPE(name)
 
#define MEASURE(name, what)   what
 
#define PROFILE_SCOPE(name)
 
#define PROFILE(name, what)   what
 

Detailed Description

Tool to measure time spent in functions and profile the code.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Profiler.h.

Macro Definition Documentation

◆ MEASURE

#define MEASURE (   name,
  what 
)    what

Definition at line 71 of file Profiler.h.

◆ MEASURE_SCOPE

#define MEASURE_SCOPE (   name)

Definition at line 70 of file Profiler.h.

◆ PROFILE

#define PROFILE (   name,
  what 
)    what

Definition at line 176 of file Profiler.h.

◆ PROFILE_SCOPE

#define PROFILE_SCOPE (   name)

Definition at line 175 of file Profiler.h.