Files
palemoon27/dom/base/PerformanceEntry.h
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

89 lines
1.8 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/. */
#ifndef mozilla_dom_PerformanceEntry_h___
#define mozilla_dom_PerformanceEntry_h___
#include "nsDOMNavigationTiming.h"
class nsISupports;
namespace mozilla {
namespace dom {
// http://www.w3.org/TR/performance-timeline/#performanceentry
class PerformanceEntry : public nsISupports,
public nsWrapperCache
{
protected:
virtual ~PerformanceEntry();
public:
PerformanceEntry(nsISupports* aParent,
const nsAString& aName,
const nsAString& aEntryType);
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(PerformanceEntry)
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
nsISupports* GetParentObject() const
{
return mParent;
}
void GetName(nsAString& aName) const
{
aName = mName;
}
const nsAString& GetName() const
{
return mName;
}
void SetName(const nsAString& aName)
{
mName = aName;
}
void GetEntryType(nsAString& aEntryType) const
{
aEntryType = mEntryType;
}
const nsAString& GetEntryType()
{
return mEntryType;
}
void SetEntryType(const nsAString& aEntryType)
{
mEntryType = aEntryType;
}
virtual DOMHighResTimeStamp StartTime() const
{
return 0;
}
virtual DOMHighResTimeStamp Duration() const
{
return 0;
}
protected:
nsCOMPtr<nsISupports> mParent;
nsString mName;
nsString mEntryType;
};
} // namespace dom
} // namespace mozilla
#endif /* mozilla_dom_PerformanceEntry_h___ */