mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
moebius#161: The Performance Resource Timing (make timestamps be relative to startTime)
https://github.com/MoonchildProductions/moebius/pull/161
This commit is contained in:
parent
5558924d7c
commit
e8dbb561f6
20 changed files with 520 additions and 154 deletions
|
|
@ -47,6 +47,15 @@ public:
|
|||
return mChannel;
|
||||
}
|
||||
|
||||
// The GetEntries* methods need to be overriden in order to add the
|
||||
// the document entry of type navigation.
|
||||
virtual void GetEntries(nsTArray<RefPtr<PerformanceEntry>>& aRetval) override;
|
||||
virtual void GetEntriesByType(const nsAString& aEntryType,
|
||||
nsTArray<RefPtr<PerformanceEntry>>& aRetval) override;
|
||||
virtual void GetEntriesByName(const nsAString& aName,
|
||||
const Optional<nsAString>& aEntryType,
|
||||
nsTArray<RefPtr<PerformanceEntry>>& aRetval) override;
|
||||
|
||||
protected:
|
||||
~PerformanceMainThread();
|
||||
|
||||
|
|
@ -63,7 +72,9 @@ protected:
|
|||
GetPerformanceTimingFromString(const nsAString& aTimingName) override;
|
||||
|
||||
void DispatchBufferFullEvent() override;
|
||||
void EnsureDocEntry();
|
||||
|
||||
RefPtr<PerformanceEntry> mDocEntry;
|
||||
RefPtr<nsDOMNavigationTiming> mDOMTiming;
|
||||
nsCOMPtr<nsITimedChannel> mChannel;
|
||||
RefPtr<PerformanceTiming> mTiming;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue