SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Routines to benchmark table operations. More...
#include <util.h>
Public Types | |
enum | TExperiment { LoadTables, Preprocess, ConstructGraph, Compute, Postprocess, StoreOutputs, AllocateColumnCopies, CopyColumns, Sort, Group, MergeNeighborhoods, AddNeighborhoods, AddEdges, Sort2, ComputeOffset, ComputeETypes, EstimateSizes, InitGraph, ExtractNbrETypes, CopyNodes, PopulateGraph, ExtractEdges, BuildSubgraph } |
List of all experiments. More... | |
Public Member Functions | |
void | Start (const TExperiment Exp) |
Start a new experiment. More... | |
void | Stop (const TExperiment Exp) |
Stop the current experiment. More... | |
int | Cnt (const TExperiment Exp) const |
Returns the number of experiments. More... | |
double | Sum (const TExperiment Exp) const |
Returns the total time of all experiments. More... | |
double | Avg (const TExperiment Exp) const |
Returns the average time of all experiments. More... | |
double | Max (const TExperiment Exp) const |
Returns the maximum time of all experiments. More... | |
double | Min (const TExperiment Exp) const |
Returns the minimum time of all experiments. More... | |
Static Public Member Functions | |
static TStopwatch * | GetInstance () |
Static Public Attributes | |
static const int | NEXPS = 25 |
The expected number of experiments (must be at least equal to the size of the above list) More... | |
Private Member Functions | |
TStopwatch () | |
TStopwatch (TStopwatch const &) | |
void | operator= (TStopwatch const &) |
double | Tick () |
Routines to benchmark table operations. More... | |
Private Attributes | |
double | Starts [NEXPS] |
int | Cnts [NEXPS] |
double | Sums [NEXPS] |
double | Maxs [NEXPS] |
double | Mins [NEXPS] |
List of all experiments.
Definition at line 74 of file util.h.
|
inlineprivate |
|
private |
double TStopwatch::Avg | ( | const TExperiment | Exp | ) | const |
int TStopwatch::Cnt | ( | const TExperiment | Exp | ) | const |
|
inlinestatic |
Definition at line 82 of file util.h.
Referenced by TSnap::ToNetworkMP(), and TSnap::ToNetworkMP2().
double TStopwatch::Max | ( | const TExperiment | Exp | ) | const |
double TStopwatch::Min | ( | const TExperiment | Exp | ) | const |
|
private |
void TStopwatch::Start | ( | const TExperiment | Exp | ) |
Start a new experiment.
Definition at line 733 of file util.cpp.
Referenced by TSnap::ToNetworkMP(), and TSnap::ToNetworkMP2().
void TStopwatch::Stop | ( | const TExperiment | Exp | ) |
Stop the current experiment.
Definition at line 737 of file util.cpp.
Referenced by TSnap::ToNetworkMP(), and TSnap::ToNetworkMP2().
double TStopwatch::Sum | ( | const TExperiment | Exp | ) | const |
|
private |
Routines to benchmark table operations.
Definition at line 701 of file util.cpp.
|
private |
Definition at line 102 of file util.h.
Referenced by TStopwatch().
|
static |
The expected number of experiments (must be at least equal to the size of the above list)
Definition at line 80 of file util.h.
Referenced by TStopwatch().