Back to index

unity  6.0.0
Public Member Functions | Protected Member Functions | Private Attributes
unity::performance::AggregateMonitor Class Reference

#include <AggregateMonitor.h>

Inheritance diagram for unity::performance::AggregateMonitor:
Inheritance graph
[legend]
Collaboration diagram for unity::performance::AggregateMonitor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AggregateMonitor ()
 ~AggregateMonitor ()
std::string GetName () const
void Start ()
GVariant * Stop ()

Protected Member Functions

void StartMonitor ()
void StopMonitor (GVariantBuilder *builder)

Private Attributes

std::list< Monitor * > _monitors

Detailed Description

Definition at line 32 of file AggregateMonitor.h.


Constructor & Destructor Documentation

Definition at line 27 of file AggregateMonitor.cpp.

{
  _monitors.push_back(new ElapsedTimeMonitor());
}

Definition at line 32 of file AggregateMonitor.cpp.

{
}

Member Function Documentation

std::string unity::performance::AggregateMonitor::GetName ( ) const [virtual]

Implements unity::performance::Monitor.

Definition at line 36 of file AggregateMonitor.cpp.

{
  return "AggregateMonitor";
}
void unity::performance::Monitor::Start ( ) [inherited]

Definition at line 25 of file Monitor.cpp.

{
  StartMonitor ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Implements unity::performance::Monitor.

Definition at line 41 of file AggregateMonitor.cpp.

{
  for (std::list<Monitor*>::iterator iter = _monitors.begin(), end = _monitors.end();
       iter != end; ++iter)
  {
    Monitor* monitor = *iter;
    monitor->Start();
  }
}

Here is the call graph for this function:

GVariant * unity::performance::Monitor::Stop ( ) [inherited]

Definition at line 30 of file Monitor.cpp.

{
  GVariantBuilder builder;

  g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
  StopMonitor (&builder);

  return g_variant_new ("a{sv}", &builder);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity::performance::AggregateMonitor::StopMonitor ( GVariantBuilder *  builder) [protected, virtual]

Implements unity::performance::Monitor.

Definition at line 51 of file AggregateMonitor.cpp.

{
  variant::BuilderWrapper wrapper(builder);
  for (std::list<Monitor*>::iterator iter = _monitors.begin(), end = _monitors.end();
       iter != end; ++iter)
  {
    Monitor* monitor = *iter;
    wrapper.add(monitor->GetName().c_str(), monitor->Stop());
  }
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 44 of file AggregateMonitor.h.


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