Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
Grappa::Metrics Namespace Reference

Classes

class  GlobalQueueMetrics
 

Functions

void histogram_sample ()
 
void merge (MetricList &result)
 Merge registered stats from all cores into result list. More...
 
void print (std::ostream &out=std::cerr, MetricList &stats=Grappa::impl::registered_stats(), const std::string &legacy_stats="")
 Print all registered stats in JSON format. More...
 
void merge_and_print (std::ostream &out=std::cerr)
 Create clone of stats list, merge all stats into it, and print them. More...
 
void merge_and_dump_to_file ()
 Merge stats from all cores and dump them to file specified by '–stats_blob_filename'. More...
 
void dump_stats_blob ()
 Dump local registered stats to file. More...
 
void reset ()
 Reset all local registered stats. More...
 
void reset_all_cores ()
 Do reset() on all cores (uses Grappa::call_on_all_cores) More...
 
void start_tracing ()
 Begin recording stats using VampirTrace (also enables Google gperf profiling) (also resets stats) More...
 
void start_tracing_here ()
 Only call 'start_tracing' on this core (use in SPMD context) More...
 
void stop_tracing_here ()
 Only call 'stop_tracing' on this core (use in SPMD context) More...
 
void stop_tracing ()
 Stop recording tracing and profiling information. More...
 
void sample ()
 Sample all local registered stats. More...
 
void sample_all ()
 

Variables

GlobalQueueMetrics global_queue_stats
 

Function Documentation

void Grappa::Metrics::dump_stats_blob ( )

Dump local registered stats to file.

Definition at line 178 of file Metrics.cpp.

void Grappa::Metrics::histogram_sample ( )

Definition at line 48 of file HistogramMetric.cpp.

void Grappa::Metrics::merge ( MetricList result)

Merge registered stats from all cores into result list.

Parameters
resultmust be a clone of a core's impl::registered_stats().

Definition at line 140 of file Metrics.cpp.

void Grappa::Metrics::merge_and_dump_to_file ( )

Merge stats from all cores and dump them to file specified by '–stats_blob_filename'.

Definition at line 170 of file Metrics.cpp.

void Grappa::Metrics::merge_and_print ( std::ostream &  out)

Create clone of stats list, merge all stats into it, and print them.

Definition at line 163 of file Metrics.cpp.

void Grappa::Metrics::print ( std::ostream &  out = std::cerr,
MetricList stats = Grappa::impl::registered_stats(),
const std::string &  legacy_stats = "" 
)

Print all registered stats in JSON format.

Takes another argument for including legacy stats in output (inside "STATS{ }STATS" bookends)

Definition at line 150 of file Metrics.cpp.

void Grappa::Metrics::reset ( )

Reset all local registered stats.

Definition at line 188 of file Metrics.cpp.

void Grappa::Metrics::reset_all_cores ( )

Do reset() on all cores (uses Grappa::call_on_all_cores)

Definition at line 194 of file Metrics.cpp.

void Grappa::Metrics::sample ( )

Sample all local registered stats.

Definition at line 253 of file Metrics.cpp.

void Grappa::Metrics::sample_all ( )
void Grappa::Metrics::start_tracing ( )

Begin recording stats using VampirTrace (also enables Google gperf profiling) (also resets stats)

Definition at line 211 of file Metrics.cpp.

void Grappa::Metrics::start_tracing_here ( )

Only call 'start_tracing' on this core (use in SPMD context)

Definition at line 217 of file Metrics.cpp.

void Grappa::Metrics::stop_tracing ( )

Stop recording tracing and profiling information.

Trace/profile is written out and aggregated at end of execution.

Definition at line 247 of file Metrics.cpp.

void Grappa::Metrics::stop_tracing_here ( )

Only call 'stop_tracing' on this core (use in SPMD context)

Definition at line 235 of file Metrics.cpp.

Variable Documentation

GlobalQueueMetrics Grappa::Metrics::global_queue_stats