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.
tim::trace Namespace Reference

Classes

struct  compiler
 Prevents recursion within a thread for compiler instrumentation functions. See also. More...
 
struct  library
 
struct  lock
 A lightweight synchronization object for preventing recursion. The first template parameter should have a constexpr boolean indicating whether the lock is thread-local (Tp::value == true) or whether the lock is global (Tp::value == false) More...
 
struct  lock< Tp, false >
 
struct  lock< Tp, true >
 
struct  region
 Prevents recursion within a thread for region functions. See also. More...
 
struct  threading
 
struct  trace
 Prevents recursion with a thread for tracing functions. See also. More...
 

Class Documentation

◆ tim::trace::lock

struct tim::trace::lock
template<typename Tp, bool ThrLoc = Tp::value>
struct tim::trace::lock< Tp, ThrLoc >

A lightweight synchronization object for preventing recursion. The first template parameter should have a constexpr boolean indicating whether the lock is thread-local (Tp::value == true) or whether the lock is global (Tp::value == false)

if(!lk)
return;
A lightweight synchronization object for preventing recursion. The first template parameter should ha...
Definition: trace.hpp:135

Definition at line 135 of file trace.hpp.

+ Collaboration diagram for tim::trace::lock< Tp, ThrLoc >: