timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
types.hpp File Reference
#include <cstddef>
+ Include dependency graph for types.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tim
 

Macros

#define _AUTO_LOCATION_COMBINE(X, Y)   X##Y
 
#define _AUTO_LOCATION(Y)   _AUTO_LOCATION_COMBINE(timemory_source_location_, Y)
 
#define TIMEMORY_SOURCE_LOCATION(MODE, ...)    ::tim::source_location(MODE, __FUNCTION__, __LINE__, __FILE__, __VA_ARGS__)
 
#define TIMEMORY_CAPTURE_MODE(MODE_TYPE)   ::tim::source_location::mode::MODE_TYPE
 
#define TIMEMORY_CAPTURE_ARGS(...)   _AUTO_LOCATION(__LINE__).get_captured(__VA_ARGS__)
 
#define TIMEMORY_INLINE_SOURCE_LOCATION(MODE, ...)
 

Macro Definition Documentation

◆ _AUTO_LOCATION

#define _AUTO_LOCATION (   Y)    _AUTO_LOCATION_COMBINE(timemory_source_location_, Y)

Definition at line 50 of file types.hpp.

◆ _AUTO_LOCATION_COMBINE

#define _AUTO_LOCATION_COMBINE (   X,
 
)    X##Y

Definition at line 49 of file types.hpp.

◆ TIMEMORY_CAPTURE_ARGS

#define TIMEMORY_CAPTURE_ARGS (   ...)    _AUTO_LOCATION(__LINE__).get_captured(__VA_ARGS__)

Definition at line 57 of file types.hpp.

◆ TIMEMORY_CAPTURE_MODE

#define TIMEMORY_CAPTURE_MODE (   MODE_TYPE)    ::tim::source_location::mode::MODE_TYPE

Definition at line 55 of file types.hpp.

◆ TIMEMORY_INLINE_SOURCE_LOCATION

#define TIMEMORY_INLINE_SOURCE_LOCATION (   MODE,
  ... 
)
Value:
::tim::get_static_source_location<__LINE__, __COUNTER__>( \
TIMEMORY_CAPTURE_MODE(MODE), __FUNCTION__, __LINE__, __FILE__, __VA_ARGS__) \
.get_captured(__VA_ARGS__)
#define TIMEMORY_CAPTURE_MODE(MODE_TYPE)
Definition: types.hpp:55

Definition at line 59 of file types.hpp.

◆ TIMEMORY_SOURCE_LOCATION

#define TIMEMORY_SOURCE_LOCATION (   MODE,
  ... 
)     ::tim::source_location(MODE, __FUNCTION__, __LINE__, __FILE__, __VA_ARGS__)

Definition at line 52 of file types.hpp.