LCOV - code coverage report
Current view: top level - tools/profiler/gecko - nsProfilerStartParams.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 1 22 4.5 %
Date: 2017-07-14 16:53:18 Functions: 2 12 16.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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           0 : NS_IMPL_ISUPPORTS(nsProfilerStartParams, nsIProfilerStartParams)
       9             : 
      10           0 : nsProfilerStartParams::nsProfilerStartParams(uint32_t aEntries,
      11             :                                              double aInterval,
      12             :                                              uint32_t aFeatures,
      13           0 :                                              const nsTArray<nsCString>& aFilters) :
      14             :   mEntries(aEntries),
      15             :   mInterval(aInterval),
      16             :   mFeatures(aFeatures),
      17           0 :   mFilters(aFilters)
      18             : {
      19           0 : }
      20             : 
      21           0 : nsProfilerStartParams::~nsProfilerStartParams()
      22             : {
      23           0 : }
      24             : 
      25             : NS_IMETHODIMP
      26           0 : nsProfilerStartParams::GetEntries(uint32_t* aEntries)
      27             : {
      28           0 :   NS_ENSURE_ARG_POINTER(aEntries);
      29           0 :   *aEntries = mEntries;
      30           0 :   return NS_OK;
      31             : }
      32             : 
      33             : NS_IMETHODIMP
      34           0 : nsProfilerStartParams::GetInterval(double* aInterval)
      35             : {
      36           0 :   NS_ENSURE_ARG_POINTER(aInterval);
      37           0 :   *aInterval = mInterval;
      38           0 :   return NS_OK;
      39             : }
      40             : 
      41             : NS_IMETHODIMP
      42           0 : nsProfilerStartParams::GetFeatures(uint32_t* aFeatures)
      43             : {
      44           0 :   NS_ENSURE_ARG_POINTER(aFeatures);
      45           0 :   *aFeatures = mFeatures;
      46           0 :   return NS_OK;
      47             : }
      48             : 
      49             : const nsTArray<nsCString>&
      50           0 : nsProfilerStartParams::GetFilters()
      51             : {
      52           0 :   return mFilters;
      53           9 : }

Generated by: LCOV version 1.13