Backed out 7 changesets (bug 1942424) for causing frequent crashes. a=backout
[gecko.git] / toolkit / components / telemetry / core / ipc / TelemetryIPC.cpp
blobdaeaeece65fea14d895e5a593c35e7b774da15ac
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/. */
7 #include "TelemetryIPC.h"
8 #include "../TelemetryScalar.h"
9 #include "../TelemetryHistogram.h"
10 #include "../TelemetryEvent.h"
12 namespace mozilla {
14 void TelemetryIPC::AccumulateChildHistograms(
15 Telemetry::ProcessID aProcessType,
16 const nsTArray<Telemetry::HistogramAccumulation>& aAccumulations) {
17 TelemetryHistogram::AccumulateChild(aProcessType, aAccumulations);
20 void TelemetryIPC::AccumulateChildKeyedHistograms(
21 Telemetry::ProcessID aProcessType,
22 const nsTArray<Telemetry::KeyedHistogramAccumulation>& aAccumulations) {
23 TelemetryHistogram::AccumulateChildKeyed(aProcessType, aAccumulations);
26 void TelemetryIPC::UpdateChildScalars(
27 Telemetry::ProcessID aProcessType,
28 const nsTArray<Telemetry::ScalarAction>& aScalarActions) {
29 TelemetryScalar::UpdateChildData(aProcessType, aScalarActions);
32 void TelemetryIPC::UpdateChildKeyedScalars(
33 Telemetry::ProcessID aProcessType,
34 const nsTArray<Telemetry::KeyedScalarAction>& aScalarActions) {
35 TelemetryScalar::UpdateChildKeyedData(aProcessType, aScalarActions);
38 void TelemetryIPC::GetDynamicScalarDefinitions(
39 nsTArray<mozilla::Telemetry::DynamicScalarDefinition>& aDefs) {
40 TelemetryScalar::GetDynamicScalarDefinitions(aDefs);
43 void TelemetryIPC::AddDynamicScalarDefinitions(
44 const nsTArray<mozilla::Telemetry::DynamicScalarDefinition>& aDefs) {
45 TelemetryScalar::AddDynamicScalarDefinitions(aDefs);
48 void TelemetryIPC::RecordChildEvents(
49 Telemetry::ProcessID aProcessType,
50 const nsTArray<Telemetry::ChildEventData>& aEvents) {
51 TelemetryEvent::RecordChildEvents(aProcessType, aEvents);
54 void TelemetryIPC::RecordDiscardedData(
55 Telemetry::ProcessID aProcessType,
56 const Telemetry::DiscardedData& aDiscardedData) {
57 TelemetryScalar::RecordDiscardedData(aProcessType, aDiscardedData);
59 } // namespace mozilla