зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1674234 - Add a profiler marker for creating the skeleton UI, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D95219
This commit is contained in:
Родитель
e1a811e37e
Коммит
313e538484
|
@ -13,6 +13,7 @@
|
|||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/glue/Debug.h"
|
||||
#include "mozilla/BaseProfilerMarkers.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "mozilla/Vector.h"
|
||||
#include "mozilla/WindowsDpiAwareness.h"
|
||||
|
@ -721,6 +722,8 @@ bool LoadGdi32AndUser32Procedures() {
|
|||
}
|
||||
|
||||
void CreateAndStorePreXULSkeletonUI(HINSTANCE hInstance) {
|
||||
const TimeStamp skeletonStart = TimeStamp::NowUnfuzzed();
|
||||
|
||||
HKEY regKey;
|
||||
if (!IsWin10OrLater() || !OpenPreXULSkeletonUIRegKey(regKey)) {
|
||||
return;
|
||||
|
@ -887,6 +890,10 @@ void CreateAndStorePreXULSkeletonUI(HINSTANCE hInstance) {
|
|||
sPreXULSKeletonUIAnimationThread = ::CreateThread(
|
||||
nullptr, 256 * 1024, AnimateSkeletonUI, nullptr, 0, nullptr);
|
||||
}
|
||||
|
||||
BASE_PROFILER_MARKER_UNTYPED(
|
||||
"CreatePreXULSkeletonUI", OTHER,
|
||||
MarkerTiming::IntervalUntilNowFrom(skeletonStart));
|
||||
}
|
||||
|
||||
bool WasPreXULSkeletonUIMaximized() { return sMaximized; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче