LCOV - code coverage report
Current view: top level - toolkit/components/startup - StartupTimeline.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 3 3 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #include "StartupTimeline.h"
       6             : #include "mozilla/Telemetry.h"
       7             : #include "mozilla/TimeStamp.h"
       8             : #include "nsXULAppAPI.h"
       9             : 
      10             : namespace mozilla {
      11             : 
      12             : TimeStamp StartupTimeline::sStartupTimeline[StartupTimeline::MAX_EVENT_ID];
      13             : const char *StartupTimeline::sStartupTimelineDesc[StartupTimeline::MAX_EVENT_ID] = {
      14             : #define mozilla_StartupTimeline_Event(ev, desc) desc,
      15             : #include "StartupTimeline.h"
      16             : #undef mozilla_StartupTimeline_Event
      17             : };
      18             : 
      19             : } /* namespace mozilla */
      20             : 
      21             : using mozilla::StartupTimeline;
      22             : using mozilla::TimeStamp;
      23             : 
      24             : /**
      25             :  * The XRE_StartupTimeline_Record function is to be used by embedding
      26             :  * applications that can't use mozilla::StartupTimeline::Record() directly.
      27             :  *
      28             :  * @param aEvent The event to be recorded, must correspond to an element of the
      29             :  *               mozilla::StartupTimeline::Event enumartion
      30             :  * @param aWhen  The time at which the event happened
      31             :  */
      32             : void
      33           1 : XRE_StartupTimelineRecord(int aEvent, TimeStamp aWhen)
      34             : {
      35           1 :   StartupTimeline::Record((StartupTimeline::Event)aEvent, aWhen);
      36           1 : }

Generated by: LCOV version 1.13