~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/AggregateMonitor.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "AggregateMonitor.h"
21
21
#include "ElapsedTimeMonitor.h"
 
22
#include <UnityCore/Variant.h>
22
23
 
23
24
namespace unity {
24
25
namespace performance {
49
50
 
50
51
void AggregateMonitor::StopMonitor(GVariantBuilder* builder)
51
52
{
 
53
  variant::BuilderWrapper wrapper(builder);
52
54
  for (std::list<Monitor*>::iterator iter = _monitors.begin(), end = _monitors.end();
53
55
       iter != end; ++iter)
54
56
  {
55
57
    Monitor* monitor = *iter;
56
 
    g_variant_builder_add(builder, "{sv}", monitor->GetName().c_str(), monitor->Stop());
 
58
    wrapper.add(monitor->GetName().c_str(), monitor->Stop());
57
59
  }
58
60
}
59
61