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::operation::mark< Tp > Struct Template Reference

This operation class is used for marking some event (usually in some external profiler) More...

#include "timemory/operations/types/mark.hpp"

+ Collaboration diagram for tim::operation::mark< Tp >:

Public Types

using type = Tp
 

Public Member Functions

template<typename... Args>
 mark (type &obj, Args &&... args)
 
template<typename... Args>
auto operator() (type &obj, Args &&... args)
 

Detailed Description

template<typename Tp>
struct tim::operation::mark< Tp >

This operation class is used for marking some event (usually in some external profiler)

Definition at line 52 of file mark.hpp.

Member Typedef Documentation

◆ type

template<typename Tp >
using tim::operation::mark< Tp >::type = Tp

Definition at line 54 of file mark.hpp.

Constructor & Destructor Documentation

◆ mark()

template<typename Tp >
template<typename... Args>
tim::operation::mark< Tp >::mark ( type obj,
Args &&...  args 
)
inlineexplicit

Definition at line 59 of file mark.hpp.

60 {
61 sfinae(obj, 0, std::forward<Args>(args)...);
62 }

Member Function Documentation

◆ operator()()

template<typename Tp >
template<typename... Args>
auto tim::operation::mark< Tp >::operator() ( type obj,
Args &&...  args 
)
inline

Definition at line 65 of file mark.hpp.

66 {
67 return sfinae(obj, 0, std::forward<Args>(args)...);
68 }

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