/src/mozilla-central/dom/performance/PerformanceMark.cpp
Line | Count | Source (jump to first uncovered line) |
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 "PerformanceMark.h" |
8 | | #include "MainThreadUtils.h" |
9 | | #include "mozilla/dom/PerformanceMarkBinding.h" |
10 | | |
11 | | using namespace mozilla::dom; |
12 | | |
13 | | PerformanceMark::PerformanceMark(nsISupports* aParent, |
14 | | const nsAString& aName, |
15 | | DOMHighResTimeStamp aStartTime) |
16 | | : PerformanceEntry(aParent, aName, NS_LITERAL_STRING("mark")) |
17 | | , mStartTime(aStartTime) |
18 | 0 | { |
19 | 0 | } |
20 | | |
21 | | PerformanceMark::~PerformanceMark() |
22 | | { |
23 | | } |
24 | | |
25 | | JSObject* |
26 | | PerformanceMark::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
27 | 0 | { |
28 | 0 | return PerformanceMark_Binding::Wrap(aCx, this, aGivenProto); |
29 | 0 | } |
30 | | |
31 | | size_t |
32 | | PerformanceMark::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const |
33 | 0 | { |
34 | 0 | return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf); |
35 | 0 | } |