mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
3517c9d907
- 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)
46 lines
1.3 KiB
C++
46 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/. */
|
|
|
|
#ifndef mozilla_dom_performancemeasure_h___
|
|
#define mozilla_dom_performancemeasure_h___
|
|
|
|
#include "mozilla/dom/PerformanceEntry.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
// http://www.w3.org/TR/user-timing/#performancemeasure
|
|
class PerformanceMeasure final : public PerformanceEntry
|
|
{
|
|
public:
|
|
PerformanceMeasure(nsISupports* aParent,
|
|
const nsAString& aName,
|
|
DOMHighResTimeStamp aStartTime,
|
|
DOMHighResTimeStamp aEndTime);
|
|
|
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
|
|
|
virtual DOMHighResTimeStamp StartTime() const override
|
|
{
|
|
return mStartTime;
|
|
}
|
|
|
|
virtual DOMHighResTimeStamp Duration() const override
|
|
{
|
|
return mDuration;
|
|
}
|
|
|
|
protected:
|
|
virtual ~PerformanceMeasure();
|
|
DOMHighResTimeStamp mStartTime;
|
|
DOMHighResTimeStamp mDuration;
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif /* mozilla_dom_performancemeasure_h___ */
|