LCOV - code coverage report
Current view: top level - toolkit/components/telemetry/ipc - TelemetryIPC.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 9 18 50.0 %
Date: 2017-07-14 16:53:18 Functions: 3 6 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "TelemetryIPC.h"
       8             : #include "../TelemetryScalar.h"
       9             : #include "../TelemetryHistogram.h"
      10             : #include "../TelemetryEvent.h"
      11             : 
      12             : namespace mozilla {
      13             : 
      14             : void
      15           2 : TelemetryIPC::AccumulateChildHistograms(Telemetry::ProcessID aProcessType,
      16             :                                         const nsTArray<Telemetry::Accumulation>& aAccumulations)
      17             : {
      18           2 :   TelemetryHistogram::AccumulateChild(aProcessType, aAccumulations);
      19           2 : }
      20             : 
      21             : void
      22           2 : TelemetryIPC::AccumulateChildKeyedHistograms(Telemetry::ProcessID aProcessType,
      23             :                                             const nsTArray<Telemetry::KeyedAccumulation>& aAccumulations)
      24             : {
      25           2 :   TelemetryHistogram::AccumulateChildKeyed(aProcessType, aAccumulations);
      26           2 : }
      27             : 
      28             : void
      29           0 : TelemetryIPC::UpdateChildScalars(Telemetry::ProcessID aProcessType,
      30             :                                  const nsTArray<Telemetry::ScalarAction>& aScalarActions)
      31             : {
      32           0 :   TelemetryScalar::UpdateChildData(aProcessType, aScalarActions);
      33           0 : }
      34             : 
      35             : void
      36           0 : TelemetryIPC::UpdateChildKeyedScalars(Telemetry::ProcessID aProcessType,
      37             :                                       const nsTArray<Telemetry::KeyedScalarAction>& aScalarActions)
      38             : {
      39           0 :   TelemetryScalar::UpdateChildKeyedData(aProcessType, aScalarActions);
      40           0 : }
      41             : 
      42             : void
      43           0 : TelemetryIPC::RecordChildEvents(Telemetry::ProcessID aProcessType, const nsTArray<Telemetry::ChildEventData>& aEvents)
      44             : {
      45           0 :   TelemetryEvent::RecordChildEvents(aProcessType, aEvents);
      46           0 : }
      47             : 
      48             : void
      49           2 : TelemetryIPC::RecordDiscardedData(Telemetry::ProcessID aProcessType,
      50             :                                   const Telemetry::DiscardedData& aDiscardedData)
      51             : {
      52           2 :   TelemetryScalar::RecordDiscardedData(aProcessType, aDiscardedData);
      53           2 : }
      54             : }

Generated by: LCOV version 1.13