Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/tools/profiler/gecko/nsProfilerStartParams.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
 * License, v. 2.0. If a copy of the MPL was not distributed with this
4
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsProfilerStartParams.h"
7
8
NS_IMPL_ISUPPORTS(nsProfilerStartParams, nsIProfilerStartParams)
9
10
nsProfilerStartParams::nsProfilerStartParams(uint32_t aEntries,
11
                                             double aInterval,
12
                                             uint32_t aFeatures,
13
                                             const nsTArray<nsCString>& aFilters) :
14
  mEntries(aEntries),
15
  mInterval(aInterval),
16
  mFeatures(aFeatures),
17
  mFilters(aFilters)
18
0
{
19
0
}
20
21
nsProfilerStartParams::~nsProfilerStartParams()
22
0
{
23
0
}
24
25
NS_IMETHODIMP
26
nsProfilerStartParams::GetEntries(uint32_t* aEntries)
27
0
{
28
0
  NS_ENSURE_ARG_POINTER(aEntries);
29
0
  *aEntries = mEntries;
30
0
  return NS_OK;
31
0
}
32
33
NS_IMETHODIMP
34
nsProfilerStartParams::GetInterval(double* aInterval)
35
0
{
36
0
  NS_ENSURE_ARG_POINTER(aInterval);
37
0
  *aInterval = mInterval;
38
0
  return NS_OK;
39
0
}
40
41
NS_IMETHODIMP
42
nsProfilerStartParams::GetFeatures(uint32_t* aFeatures)
43
0
{
44
0
  NS_ENSURE_ARG_POINTER(aFeatures);
45
0
  *aFeatures = mFeatures;
46
0
  return NS_OK;
47
0
}
48
49
const nsTArray<nsCString>&
50
nsProfilerStartParams::GetFilters()
51
0
{
52
0
  return mFilters;
53
0
}