SST/macro
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
sstmac::sw::graph_viz Class Reference

#include <graphviz.h>

Inheritance diagram for sstmac::sw::graph_viz:
Inheritance graph
Collaboration diagram for sstmac::sw::graph_viz:
Collaboration graph

Classes

class  trace
 

Public Member Functions

 graph_viz ()
 
std::string to_string () const
 
virtual ~graph_viz ()
 
void simulation_finished (timestamp end)
 This is to notify that the statistics collector is done. More...
 
void clear ()
 
void reduce (stat_collector *coll)
 
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...
 
graph_vizclone_me (int id) const
 
void global_reduce (parallel_runtime *rt)
 
stat_collectorclone () const
 
void count_trace (long count, sw::thread *thr)
 
- Public Member Functions inherited from sstmac::stat_collector
virtual ~stat_collector ()
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
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 ()
 

Static Public Member Functions

static void ** allocate_trace ()
 
static void delete_trace (void **tr)
 
static void delete_statics ()
 
- 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)
 

Private Types

typedef std::pair< long, long long > graphviz_call
 

Private Member Functions

void add_call (int ncalls, long count, void *fxn, void *callfxn)
 
traceget_trace (void *fxn)
 

Private Attributes

std::map< void *, trace * > traces_
 
std::map< void *, std::string > ptr_to_fxn_
 
std::map< std::string, void * > fxn_to_ptr_
 

Friends

class trace
 

Additional Inherited Members

- Protected Member Functions inherited from sstmac::stat_collector
 stat_collector ()
 
void clone_into (stat_collector *cln) const
 
- 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...
 
- Protected Attributes inherited from sstmac::stat_collector
bool registered_
 
int id_
 
std::string fileroot_
 

Detailed Description

Definition at line 32 of file graphviz.h.

Member Typedef Documentation

typedef std::pair<long, long long> sstmac::sw::graph_viz::graphviz_call
private

Definition at line 81 of file graphviz.h.

Constructor & Destructor Documentation

sstmac::sw::graph_viz::graph_viz ( )
virtual sstmac::sw::graph_viz::~graph_viz ( )
virtual

Member Function Documentation

void sstmac::sw::graph_viz::add_call ( int  ncalls,
long  count,
void *  fxn,
void *  callfxn 
)
private
static void** sstmac::sw::graph_viz::allocate_trace ( )
static
void sstmac::sw::graph_viz::clear ( )
virtual
stat_collector* sstmac::sw::graph_viz::clone ( ) const
inlinevirtual

Implements sstmac::stat_collector.

Definition at line 67 of file graphviz.h.

graph_viz* sstmac::sw::graph_viz::clone_me ( int  id) const
inline

Definition at line 56 of file graphviz.h.

References sstmac::stat_collector::set_id().

Here is the call graph for this function:

void sstmac::sw::graph_viz::count_trace ( long  count,
sw::thread thr 
)
static void sstmac::sw::graph_viz::delete_statics ( )
static
static void sstmac::sw::graph_viz::delete_trace ( void **  tr)
static
void sstmac::sw::graph_viz::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::sw::graph_viz::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.

trace* sstmac::sw::graph_viz::get_trace ( void *  fxn)
private
void sstmac::sw::graph_viz::global_reduce ( parallel_runtime rt)
virtual
void sstmac::sw::graph_viz::reduce ( stat_collector coll)
virtual
void sstmac::sw::graph_viz::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.

std::string sstmac::sw::graph_viz::to_string ( ) const
inlinevirtual

Reimplemented from sstmac::stat_collector.

Definition at line 39 of file graphviz.h.

Friends And Related Function Documentation

friend class trace
friend

Definition at line 120 of file graphviz.h.

Member Data Documentation

std::map<std::string, void*> sstmac::sw::graph_viz::fxn_to_ptr_
private

Definition at line 118 of file graphviz.h.

std::map<void*, std::string> sstmac::sw::graph_viz::ptr_to_fxn_
private

Definition at line 116 of file graphviz.h.

std::map<void*, trace*> sstmac::sw::graph_viz::traces_
private

Definition at line 114 of file graphviz.h.


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