SNAP Library 3.0, User Reference
2016-07-20 17:56:49
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 |
double TStopwatch::Max | ( | const TExperiment | Exp | ) | const |
double TStopwatch::Min | ( | const TExperiment | Exp | ) | const |
|
private |
void TStopwatch::Start | ( | const TExperiment | Exp | ) |
void TStopwatch::Stop | ( | const TExperiment | Exp | ) |
double TStopwatch::Sum | ( | const TExperiment | Exp | ) | const |
|
private |
Routines to benchmark table operations.
Definition at line 701 of file util.cpp.
|
static |