OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
profiler.h File Reference
#include <chrono>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  opennn::Stats
 
struct  opennn::Stats::Entry
 
class  opennn::ScopedTimer
 

Namespaces

namespace  opennn
 

Macros

#define OPENNN_PROFILE_CAT_INNER(a, b)
 
#define OPENNN_PROFILE_CAT(a, b)
 
#define PROFILE_SCOPE_IMPL(name, sync)
 
#define PROFILE_SCOPE(name)
 
#define PROFILE_SCOPE_HOST(name)
 

Functions

Statsopennn::global_stats ()
 
bool & opennn::enabled ()
 

Macro Definition Documentation

◆ OPENNN_PROFILE_CAT

#define OPENNN_PROFILE_CAT ( a,
b )
Value:
#define OPENNN_PROFILE_CAT_INNER(a, b)
Definition profiler.h:104

◆ OPENNN_PROFILE_CAT_INNER

#define OPENNN_PROFILE_CAT_INNER ( a,
b )
Value:
a##b

◆ PROFILE_SCOPE

#define PROFILE_SCOPE ( name)
Value:
PROFILE_SCOPE_IMPL(name, true)
#define PROFILE_SCOPE_IMPL(name, sync)
Definition profiler.h:109

◆ PROFILE_SCOPE_HOST

#define PROFILE_SCOPE_HOST ( name)
Value:
PROFILE_SCOPE_IMPL(name, false)

◆ PROFILE_SCOPE_IMPL

#define PROFILE_SCOPE_IMPL ( name,
sync )
Value:
::opennn::ScopedTimer OPENNN_PROFILE_CAT(_profile_, __LINE__)( \
::opennn::enabled() ? string(name) : string{}, sync)
Definition profiler.h:75
#define OPENNN_PROFILE_CAT(a, b)
Definition profiler.h:105