gecko-dev/dom/performance
Sean Feng 9f50bffe4a Bug 1675543 - Cache PerformanceResourceTiming's StartTime r=smaug
PerformanceResourceTiming recalculates the startTime every time when
`StartTime()` method is called, which slows down `GetEntriesByName()`
due to this method requires `StartTime()` to order the entries.

In addition to that, there's not need to recalculate it every time, since all
required timings are already set when the `PerformanceTimingData`
object is first created.

This patch calculates the `startTime` when it's accessed first time
and caches it.

Differential Revision: https://phabricator.services.mozilla.com/D96295
2020-11-10 01:30:24 +00:00
..
tests Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange 2020-10-27 16:25:50 +00:00
moz.build Bug 1518999 - Fix python black lint failures in webidl/moz.build and performance/moz.build 2020-10-27 18:54:30 +02:00
Performance.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
Performance.h Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange 2020-10-27 16:25:50 +00:00
PerformanceEntry.cpp
PerformanceEntry.h
PerformanceMainThread.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceMainThread.h Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange 2020-10-27 16:25:50 +00:00
PerformanceMark.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
PerformanceMark.h
PerformanceMeasure.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
PerformanceMeasure.h
PerformanceNavigation.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceNavigation.h
PerformanceNavigationTiming.cpp Bug 1511941 - Don't expose PerformanceNavigationTiming in RFP mode r=tjr,baku 2020-05-07 16:33:38 +00:00
PerformanceNavigationTiming.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
PerformanceObserver.cpp Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange 2020-10-27 16:25:50 +00:00
PerformanceObserver.h Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj 2020-03-20 17:13:51 +00:00
PerformanceObserverEntryList.cpp
PerformanceObserverEntryList.h Bug 1626570 - Improve handling of copying arrays in dom/performance/. r=smaug 2020-05-05 14:15:00 +00:00
PerformancePaintTiming.cpp Backed out 2 changesets (bug 1675543) for marionette failures on test_refresh_firefox.py. CLOSED TREE 2020-11-09 19:50:09 +02:00
PerformancePaintTiming.h Backed out 2 changesets (bug 1675543) for marionette failures on test_refresh_firefox.py. CLOSED TREE 2020-11-09 19:50:09 +02:00
PerformanceResourceTiming.cpp Bug 1675543 - Cache PerformanceResourceTiming's StartTime r=smaug 2020-11-10 01:30:24 +00:00
PerformanceResourceTiming.h Bug 1675543 - Cache PerformanceResourceTiming's StartTime r=smaug 2020-11-10 01:30:24 +00:00
PerformanceServerTiming.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceServerTiming.h Bug 1626555 - Add dom/performance to the list of non-unified-build-compatible directories. r=sg 2020-10-29 17:37:02 +00:00
PerformanceService.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceService.h
PerformanceStorage.h
PerformanceStorageWorker.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceStorageWorker.h Bug 1626555 - Add dom/performance to the list of non-unified-build-compatible directories. r=sg 2020-10-29 17:37:02 +00:00
PerformanceTiming.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceTiming.h Bug 1599160 - Stop synthesizing performance timing entries for cache sheets. r=mayhemer 2020-06-12 19:06:12 +00:00
PerformanceWorker.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PerformanceWorker.h Bug 1518999 - Implement PerformancePaintTiming for FirstContentfulPaint r=smaug,mstange 2020-10-27 16:25:50 +00:00