net_instaweb::SharedMemStatistics Class Reference

Inheritance diagram for net_instaweb::SharedMemStatistics:
net_instaweb::StatisticsTemplate< SharedMemVariable, SharedMemHistogram, FakeTimedVariable > net_instaweb::Statistics

List of all members.

Public Member Functions

 SharedMemStatistics (AbstractSharedMem *shm_runtime, const GoogleString &filename_prefix)
void Init (bool parent, MessageHandler *message_handler)
void GlobalCleanup (MessageHandler *message_handler)

Protected Member Functions

virtual SharedMemVariableNewVariable (const StringPiece &name, int index)
 Interface to subclass.
virtual SharedMemHistogramNewHistogram (const StringPiece &name)
virtual FakeTimedVariableNewTimedVariable (const StringPiece &name, int index)

Member Function Documentation

void net_instaweb::SharedMemStatistics::GlobalCleanup ( MessageHandler message_handler  ) 

This should be called from the root process as it is about to exit, when no further children are expected to start.

void net_instaweb::SharedMemStatistics::Init ( bool  parent,
MessageHandler message_handler 
)

This method initializes or attaches to shared memory. You should call this exactly once in each process/thread, after all calls to AddVariables, AddHistograms and SetMaxBuckets have been done. The root process (the one that starts all the other child threads and processes) must be the first one to make the call, with parent = true, with all other calling it with = false.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:17 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3