PPL Logo

stats::stats Class Reference

Sums up the time taken by each operation. More...

#include <stats.h>

Collaboration diagram for stats::stats:

Collaboration graph
[legend]

Public Member Functions

 stats ()
void zero (void)
 Clear all accumulators.
void add (double val, op_t op)
 Add this value to this accumulator.
double get (op_t op) const
 Look up the value in this accumulator.
void set (double val, op_t op)
void add (const stats &s, double scale=1.0)
 Add everything in this object, scaled by scale, to us.
void print (FILE *f, const char *what, double scale=1.0, double thresh=0.001) const
 Print these stats, scaled by scale, where they exceed threshold.

Data Fields

double t [op_max]
 Accumulators for each op_t:.

Detailed Description

Sums up the time taken by each operation.

Definition at line 53 of file stats.h.


Constructor & Destructor Documentation

stats::stats::stats (  )  [inline]

Definition at line 58 of file stats.h.

References zero().

Here is the call graph for this function:


Member Function Documentation

void stats::stats::zero ( void   )  [inline]

Clear all accumulators.

Definition at line 61 of file stats.h.

References op, stats::op_len, and t.

Referenced by stats(), and LV3D_PerfManager::zero().

Here is the caller graph for this function:

void stats::stats::add ( double  val,
op_t  op 
) [inline]

Add this value to this accumulator.

Definition at line 65 of file stats.h.

References op, and t.

Referenced by LV3D0_Deposit(), and LV3D_PerfManager::zero().

Here is the caller graph for this function:

double stats::stats::get ( op_t  op  )  const [inline]

Look up the value in this accumulator.

Definition at line 68 of file stats.h.

References op, and t.

Referenced by printStats().

Here is the caller graph for this function:

void stats::stats::set ( double  val,
op_t  op 
) [inline]

Definition at line 69 of file stats.h.

References op, and t.

Referenced by LV3D_PerfManager::collect().

Here is the caller graph for this function:

void stats::stats::add ( const stats s,
double  scale = 1.0 
) [inline]

Add everything in this object, scaled by scale, to us.

Definition at line 72 of file stats.h.

References op, stats::op_len, PUP::s, and t.

void stats::stats::print ( FILE *  f,
const char *  what,
double  scale = 1.0,
double  thresh = 0.001 
) const

Print these stats, scaled by scale, where they exceed threshold.

Referenced by printStats().

Here is the caller graph for this function:


Field Documentation

double stats::stats::t[op_max]

Accumulators for each op_t:.

Definition at line 56 of file stats.h.

Referenced by add(), LV3D_PerfManager::collect(), get(), set(), and zero().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:30:13 2020 for Charm++ by  doxygen 1.5.5