SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sstmac::stat_histogram Class Reference

#include <stat_histogram.h>

Inheritance diagram for sstmac::stat_histogram:
Inheritance graph
Collaboration diagram for sstmac::stat_histogram:
Collaboration graph

Public Member Functions

 stat_histogram ()
 
void collect (double value)
 
void collect (double value, int64_t num)
 
void simulation_finished (timestamp end)
 This is to notify that the statistics collector is done. More...
 
void dump_local_data ()
 After post-processing, this notifies the collector to dump data to a file. More...
 
void dump_global_data ()
 After post-processing, this notifies the collector to dump data to a file. More...
 
void global_reduce (parallel_runtime *rt)
 
void clear ()
 
void reduce (stat_collector *coll)
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
stat_histogramclone_me (int id) const
 
stat_collectorclone () const
 
- Public Member Functions inherited from sstmac::stat_collector
virtual ~stat_collector ()
 
virtual std::string to_string () const
 
bool registered () const
 
virtual void set_id (int id)
 
int id () const
 
void set_registered (bool reg)
 
void add_suffix (const std::string &suffix)
 
std::string fileroot () const
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Protected Member Functions

void dump (const std::string &froot)
 
void clone_into (stat_histogram *cln) const
 
- Protected Member Functions inherited from sstmac::stat_collector
 stat_collector ()
 
void clone_into (stat_collector *cln) const
 

Protected Attributes

std::vector< int64_t > counts_
 
double bin_size_
 
int64_t max_bin_
 
bool is_log_
 
- Protected Attributes inherited from sstmac::stat_collector
bool registered_
 
int id_
 
std::string fileroot_
 

Additional Inherited Members

- Static Public Member Functions inherited from sstmac::stat_collector
static stat_collectoroptional_build (sprockit::sim_parameters *params, const std::string &ns, const std::string &deflt, const char *suffix)
 
- Static Protected Member Functions inherited from sstmac::stat_collector
static bool check_open (std::fstream &myfile, const std::string &fname, std::ios::openmode flags=std::ios::out)
 Check to see if the file is open. More...
 

Detailed Description

Definition at line 10 of file stat_histogram.h.

Constructor & Destructor Documentation

sstmac::stat_histogram::stat_histogram ( )

Referenced by clone_me().

Member Function Documentation

void sstmac::stat_histogram::clear ( )
virtual
stat_collector* sstmac::stat_histogram::clone ( ) const
inlinevirtual

Implements sstmac::stat_collector.

Definition at line 52 of file stat_histogram.h.

References clone_into(), clone_me(), and dump().

Here is the call graph for this function:

void sstmac::stat_histogram::clone_into ( stat_histogram cln) const
protected

Referenced by clone(), and clone_me().

stat_histogram* sstmac::stat_histogram::clone_me ( int  id) const
inline

Definition at line 44 of file stat_histogram.h.

References clone_into(), sstmac::stat_collector::set_id(), and stat_histogram().

Referenced by clone().

Here is the call graph for this function:

void sstmac::stat_histogram::collect ( double  value)
void sstmac::stat_histogram::collect ( double  value,
int64_t  num 
)
void sstmac::stat_histogram::dump ( const std::string &  froot)
protected

Referenced by clone().

void sstmac::stat_histogram::dump_global_data ( )
virtual

After post-processing, this notifies the collector to dump data to a file.

Parameters
nameThe root of the filename to dump to

Implements sstmac::stat_collector.

void sstmac::stat_histogram::dump_local_data ( )
virtual

After post-processing, this notifies the collector to dump data to a file.

Parameters
nameThe root of the filename to dump to

Implements sstmac::stat_collector.

void sstmac::stat_histogram::global_reduce ( parallel_runtime rt)
virtual
virtual void sstmac::stat_histogram::init_factory_params ( sprockit::sim_parameters *  params)
virtual

Reimplemented from sstmac::stat_collector.

void sstmac::stat_histogram::reduce ( stat_collector coll)
virtual
void sstmac::stat_histogram::simulation_finished ( timestamp  end)
virtual

This is to notify that the statistics collector is done.

Do any necessary data post-processing, but do NOT dump to file

Implements sstmac::stat_collector.

Member Data Documentation

double sstmac::stat_histogram::bin_size_
protected

Definition at line 66 of file stat_histogram.h.

std::vector<int64_t> sstmac::stat_histogram::counts_
protected

Definition at line 64 of file stat_histogram.h.

bool sstmac::stat_histogram::is_log_
protected

Definition at line 70 of file stat_histogram.h.

int64_t sstmac::stat_histogram::max_bin_
protected

Definition at line 68 of file stat_histogram.h.


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