Files
palemoon27/dom/base/PerformanceEntry.cpp
T
roytam1 3517c9d907 import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1158442 - Remove the "Performance Entry buffer size maximum reached" warning; r=baku (98065e0a3)
- Bug 1164552 - create new colors in light/dark themes for devtools specifically for rendering graphs in the performance tool. The highlight-* colors in light theme work well for text, less so for rendered blocks and appear very 'bold'. Most of the dark theme graph colors are the same as their highlight-* equivilents. r=vp (a5f33fb22)
- Bug 1158731 - Buffer for Performance APIs (Resource Timing, User Timing) should be separeted. r=baku (87d4be360)
- Bug 1166494 - Re-add console timestamp and style markers' metadata. r=vp (24c989240)
- Bug 1166494 - part2: correctly add labels to console markers and properly add style markers' restyleHints. r=vp (ecf87cff4)
- Bug 1166494 - part3: Correctly handle marker definition fields that are described via function rather than array. r=vp (b71b8575f)
- Bug 1162662 - Map JS markers to human readable keys, and hide if platform related via (Gecko). r=vp (7526bec84)
- Bug 1167006 - Refactor marker details to not handle stack traces explicitly, and move logic into marker utils. Separate out some source link styles. r=vp (5b69886a7)
- remove rough hack, shall be introduced later clean witha round like TFF or proper clamping/jittering as with FF 1443943 (91a202517)
- Bug 1155761 - User Timing API in Workers, r=ehsan (0b7d3fe7d)
2021-05-10 09:33:14 +08:00

43 lines
1.3 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "PerformanceEntry.h"
#include "nsIURI.h"
#include "mozilla/dom/PerformanceEntryBinding.h"
using namespace mozilla::dom;
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(PerformanceEntry, mParent)
NS_IMPL_CYCLE_COLLECTING_ADDREF(PerformanceEntry)
NS_IMPL_CYCLE_COLLECTING_RELEASE(PerformanceEntry)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(PerformanceEntry)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
PerformanceEntry::PerformanceEntry(nsISupports* aParent,
const nsAString& aName,
const nsAString& aEntryType)
: mParent(aParent),
mName(aName),
mEntryType(aEntryType)
{
// mParent is null in workers.
MOZ_ASSERT(mParent || !NS_IsMainThread());
}
PerformanceEntry::~PerformanceEntry()
{
}
JSObject*
PerformanceEntry::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return mozilla::dom::PerformanceEntryBinding::Wrap(aCx, this, aGivenProto);
}