Arcane  v4.1.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Arcane::Alina::Profiler

Profiler class. Plus de détails...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/alina/arccore/alina/Profiler.h>

+ Graphe de collaboration de Arcane::Alina::Profiler:

Classes

struct  profile_unit
 
struct  scoped_ticker
 

Types publics

typedef double value_type
 
typedef double delta_type
 

Fonctions membres publiques

 Profiler ()
 Initialization.
 
 Profiler (const std::string &name)
 
void tic (const std::string &name)
 Starts measurement.
 
delta_type toc (const std::string &="")
 Stops measurement.
 
void reset ()
 
scoped_ticker scoped_tic (const std::string &name)
 

Fonctions membres publiques statiques

static ProfilerglobalProfiler ()
 
static void globalTic (const std::string &name)
 
static delta_type globalToc (const std::string &="")
 Stops measurement.
 
static scoped_ticker global_scoped_tic (const std::string &name)
 

Fonctions membres privées

void init ()
 
void print (std::ostream &out) const
 

Attributs privés

std::string name
 
profile_unit root
 
std::vector< profile_unit * > stack
 

Attributs privés statiques

static constexpr unsigned int SHIFT_WIDTH = 2
 

Amis

std::ostream & operator<< (std::ostream &out, const Profiler &prof)
 Sends formatted profiling data to an output stream.
 

Description détaillée

Profiler class.

Provides simple to use, hierarchical profile with nicely formatted output.

Définition à la ligne 49 du fichier Profiler.h.

Documentation des définitions de type membres

◆ delta_type

typedef double Arcane::Alina::Profiler::delta_type

Définition à la ligne 56 du fichier Profiler.h.

◆ value_type

typedef double Arcane::Alina::Profiler::value_type

Définition à la ligne 55 du fichier Profiler.h.

Documentation des constructeurs et destructeur

◆ Profiler() [1/2]

Arcane::Alina::Profiler::Profiler ( )
inline

Initialization.

Définition à la ligne 59 du fichier Profiler.h.

Référencé par operator<<.

+ Voici le graphe des appelants de cette fonction :

◆ Profiler() [2/2]

Arcane::Alina::Profiler::Profiler ( const std::string & name)
inline

Définition à la ligne 65 du fichier Profiler.h.

Documentation des fonctions membres

◆ global_scoped_tic()

static scoped_ticker Arcane::Alina::Profiler::global_scoped_tic ( const std::string & name)
inlinestatic

Définition à la ligne 116 du fichier Profiler.h.

◆ globalProfiler()

Profiler & Arcane::Alina::Profiler::globalProfiler ( )
static

Définition à la ligne 25 du fichier Profiler.cc.

◆ globalTic()

void Arcane::Alina::Profiler::globalTic ( const std::string & name)
static

Définition à la ligne 31 du fichier Profiler.cc.

◆ globalToc()

Profiler::delta_type Arcane::Alina::Profiler::globalToc ( const std::string & = "")
static

Stops measurement.

Returns delta in the measured value since the corresponding tic().

Définition à la ligne 37 du fichier Profiler.cc.

◆ init()

void Arcane::Alina::Profiler::init ( )
private

Définition à la ligne 88 du fichier Profiler.cc.

◆ print()

void Arcane::Alina::Profiler::print ( std::ostream & out) const
private

Définition à la ligne 99 du fichier Profiler.cc.

◆ reset()

void Arcane::Alina::Profiler::reset ( )

Définition à la ligne 74 du fichier Profiler.cc.

◆ scoped_tic()

scoped_ticker Arcane::Alina::Profiler::scoped_tic ( const std::string & name)
inline

Définition à la ligne 111 du fichier Profiler.h.

◆ tic()

void Arcane::Alina::Profiler::tic ( const std::string & name)

Starts measurement.

Paramètres
nameinterval name.

Définition à la ligne 46 du fichier Profiler.cc.

Références Arcane::Platform::getRealTime().

+ Voici le graphe d'appel pour cette fonction :

◆ toc()

Profiler::delta_type Arcane::Alina::Profiler::toc ( const std::string & = "")

Stops measurement.

Returns delta in the measured value since the corresponding tic().

Définition à la ligne 56 du fichier Profiler.cc.

Références Arcane::Platform::getRealTime().

+ Voici le graphe d'appel pour cette fonction :

Documentation des fonctions amies et associées

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const Profiler & prof )
friend

Sends formatted profiling data to an output stream.

Paramètres
outOutput stream.
profProfiler.

Définition à la ligne 200 du fichier Profiler.h.

Références Profiler().

Documentation des données membres

◆ name

std::string Arcane::Alina::Profiler::name
private

Définition à la ligne 186 du fichier Profiler.h.

◆ root

profile_unit Arcane::Alina::Profiler::root
private

Définition à la ligne 187 du fichier Profiler.h.

◆ SHIFT_WIDTH

unsigned int Arcane::Alina::Profiler::SHIFT_WIDTH = 2
staticconstexprprivate

Définition à la ligne 51 du fichier Profiler.h.

◆ stack

std::vector<profile_unit*> Arcane::Alina::Profiler::stack
private

Définition à la ligne 188 du fichier Profiler.h.


La documentation de cette classe a été générée à partir des fichiers suivants :