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.
timemory_c.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "timemory/compat/library.h"
#include "timemory/compat/macros.h"
#include "timemory/enum.h"
+ Include dependency graph for timemory_c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TIMEMORY_C_SETTINGS_INIT   { 1, -1, -1, -1, -1, -1, -1, -1, -1 };
 
#define TIMEMORY_C_INIT(argc, argv, settings)   c_timemory_init(argc, argv, settings)
 
#define TIMEMORY_C_FINALIZE()   c_timemory_finalize()
 
#define TIMEMORY_C_BLANK_LABEL(c_str)   c_str
 
#define TIMEMORY_C_BASIC_LABEL(c_str)   c_timemory_basic_label(__FUNCTION__, c_str)
 
#define TIMEMORY_C_LABEL(c_str)    c_timemory_label(__FUNCTION__, __FILE__, __LINE__, c_str)
 
#define TIMEMORY_C_BLANK_AUTO_TIMER(c_str)    c_timemory_create_auto_timer(TIMEMORY_C_BLANK_LABEL(c_str))
 
#define TIMEMORY_C_BASIC_AUTO_TIMER(c_str)    c_timemory_create_auto_timer(TIMEMORY_C_BASIC_LABEL(c_str))
 
#define TIMEMORY_C_AUTO_TIMER(c_str)    c_timemory_create_auto_timer(TIMEMORY_C_LABEL(c_str))
 
#define FREE_TIMEMORY_C_AUTO_TIMER(ctimer)    c_timemory_delete_auto_timer((void*) ctimer)
 
#define TIMEMORY_C_BLANK_MARKER(c_str, ...)
 
#define TIMEMORY_C_BASIC_MARKER(c_str, ...)
 
#define TIMEMORY_C_MARKER(c_str, ...)
 
#define FREE_TIMEMORY_C_MARKER(ctimer)   c_timemory_delete_auto_tuple((void*) ctimer)
 

Macro Definition Documentation

◆ FREE_TIMEMORY_C_AUTO_TIMER

#define FREE_TIMEMORY_C_AUTO_TIMER (   ctimer)     c_timemory_delete_auto_timer((void*) ctimer)

Definition at line 85 of file timemory_c.h.

◆ FREE_TIMEMORY_C_MARKER

#define FREE_TIMEMORY_C_MARKER (   ctimer)    c_timemory_delete_auto_tuple((void*) ctimer)

Definition at line 102 of file timemory_c.h.

◆ TIMEMORY_C_AUTO_TIMER

#define TIMEMORY_C_AUTO_TIMER (   c_str)     c_timemory_create_auto_timer(TIMEMORY_C_LABEL(c_str))

Definition at line 82 of file timemory_c.h.

◆ TIMEMORY_C_BASIC_AUTO_TIMER

#define TIMEMORY_C_BASIC_AUTO_TIMER (   c_str)     c_timemory_create_auto_timer(TIMEMORY_C_BASIC_LABEL(c_str))

Definition at line 79 of file timemory_c.h.

◆ TIMEMORY_C_BASIC_LABEL

#define TIMEMORY_C_BASIC_LABEL (   c_str)    c_timemory_basic_label(__FUNCTION__, c_str)

Definition at line 69 of file timemory_c.h.

◆ TIMEMORY_C_BASIC_MARKER

#define TIMEMORY_C_BASIC_MARKER (   c_str,
  ... 
)
Value:
void * c_timemory_create_auto_tuple(const char *,...)
Definition: timemory_c.c:83
#define TIMEMORY_COMPONENTS_END
Definition: enum.h:155
#define TIMEMORY_C_BASIC_LABEL(c_str)
Definition: timemory_c.h:69

Definition at line 94 of file timemory_c.h.

◆ TIMEMORY_C_BLANK_AUTO_TIMER

#define TIMEMORY_C_BLANK_AUTO_TIMER (   c_str)     c_timemory_create_auto_timer(TIMEMORY_C_BLANK_LABEL(c_str))

Definition at line 76 of file timemory_c.h.

◆ TIMEMORY_C_BLANK_LABEL

#define TIMEMORY_C_BLANK_LABEL (   c_str)    c_str

Definition at line 67 of file timemory_c.h.

◆ TIMEMORY_C_BLANK_MARKER

#define TIMEMORY_C_BLANK_MARKER (   c_str,
  ... 
)
Value:
#define TIMEMORY_C_BLANK_LABEL(c_str)
Definition: timemory_c.h:67

Definition at line 90 of file timemory_c.h.

◆ TIMEMORY_C_FINALIZE

#define TIMEMORY_C_FINALIZE ( )    c_timemory_finalize()

Definition at line 63 of file timemory_c.h.

◆ TIMEMORY_C_INIT

#define TIMEMORY_C_INIT (   argc,
  argv,
  settings 
)    c_timemory_init(argc, argv, settings)

Definition at line 62 of file timemory_c.h.

◆ TIMEMORY_C_LABEL

#define TIMEMORY_C_LABEL (   c_str)     c_timemory_label(__FUNCTION__, __FILE__, __LINE__, c_str)

Definition at line 71 of file timemory_c.h.

◆ TIMEMORY_C_MARKER

#define TIMEMORY_C_MARKER (   c_str,
  ... 
)
Value:
#define TIMEMORY_C_LABEL(c_str)
Definition: timemory_c.h:71

Definition at line 98 of file timemory_c.h.

◆ TIMEMORY_C_SETTINGS_INIT

#define TIMEMORY_C_SETTINGS_INIT   { 1, -1, -1, -1, -1, -1, -1, -1, -1 };

Definition at line 61 of file timemory_c.h.