Changeset 246076 in webkit
- Timestamp:
- Jun 4, 2019, 12:15:21 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
- 1 copied
-
ChangeLog (modified) (1 diff)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/wincairo/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/PlatformWinCairo.cmake (modified) (1 diff)
-
Source/WebCore/page/ResourceUsageThread.h (modified) (1 diff)
-
Source/WebCore/page/win/ResourceUsageOverlayWin.cpp (copied) (copied from trunk/Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp ) (2 diffs)
-
Source/WebCore/page/win/ResourceUsageThreadWin.cpp (added)
-
Source/cmake/OptionsWin.cmake (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r246033 r246076 1 2019-06-04 Takashi Komori <Takashi.Komori@sony.com> 2 3 [WinCairo] Implement cpu and memory measuring functions. 4 https://bugs.webkit.org/show_bug.cgi?id=198466 5 6 Reviewed by Don Olmstead. 7 8 * Source/cmake/OptionsWin.cmake: 9 1 10 2019-06-03 Zan Dobersek <zdobersek@igalia.com> 2 11 -
trunk/LayoutTests/ChangeLog
r246070 r246076 1 2019-06-04 Takashi Komori <Takashi.Komori@sony.com> 2 3 [WinCairo] Implement cpu and memory measuring functions. 4 https://bugs.webkit.org/show_bug.cgi?id=198466 5 6 Reviewed by Don Olmstead. 7 8 * platform/wincairo/TestExpectations: 9 1 10 2019-06-02 Antoine Quint <graouts@apple.com> 2 11 -
trunk/LayoutTests/platform/wincairo/TestExpectations
r245802 r246076 1565 1565 imported/w3c [ Skip ] 1566 1566 inspector [ Skip ] 1567 inspector/memory/ [ Pass ] 1568 inspector/cpu-profiler/ [ Pass ] 1569 inspector/cpu-profiler/threads.html [ Failure ] 1567 1570 js/dom/deep-recursion-test.html [ Failure ] 1568 1571 js/dom/dom-static-property-for-in-iteration.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r246074 r246076 1 2019-06-04 Takashi Komori <Takashi.Komori@sony.com> 2 3 [WinCairo] Implement cpu and memory measuring functions. 4 https://bugs.webkit.org/show_bug.cgi?id=198466 5 6 Reviewed by Don Olmstead. 7 8 Tests: inspector/memory/tracking.html 9 inspector/cpu-profiler/tracking.html 10 11 * PlatformWinCairo.cmake: 12 * page/ResourceUsageThread.h: 13 * page/win/ResourceUsageOverlayWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp. 14 (WebCore::ResourceUsageOverlay::platformInitialize): 15 (WebCore::ResourceUsageOverlay::platformDestroy): 16 * page/win/ResourceUsageThreadWin.cpp: Added. 17 (WebCore::ResourceUsageThread::platformSaveStateBeforeStarting): 18 (WebCore::fileTimeToUint64): 19 (WebCore::getCurrentCpuTime): 20 (WebCore::cpuUsage): 21 (WebCore::memoryUsage): 22 (WebCore::ResourceUsageThread::platformCollectCPUData): 23 (WebCore::ResourceUsageThread::platformCollectMemoryData): 24 1 25 2019-06-04 Antoine Quint <graouts@apple.com> 2 26 -
trunk/Source/WebCore/PlatformWinCairo.cmake
r244443 r246076 13 13 list(APPEND WebCore_SOURCES 14 14 page/win/FrameCairoWin.cpp 15 page/win/ResourceUsageOverlayWin.cpp 16 page/win/ResourceUsageThreadWin.cpp 15 17 16 18 platform/graphics/GLContext.cpp -
trunk/Source/WebCore/page/ResourceUsageThread.h
r240522 r246076 73 73 74 74 void createThreadIfNeeded(); 75 void threadBody();75 NO_RETURN void threadBody(); 76 76 77 77 void platformSaveStateBeforeStarting(); -
trunk/Source/WebCore/page/win/ResourceUsageOverlayWin.cpp
r246075 r246076 1 1 /* 2 * Copyright (C) 2014 Igalia S.L. 2 * Copyright (C) 2017 Igalia S.L. 3 * Copyright (C) 2019 Sony Interactive Entertainment Inc. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 25 26 26 27 #include "config.h" 27 #include " TestRunner.h"28 #include "ResourceUsageOverlay.h" 28 29 29 #i nclude "ActivateFonts.h"30 #if ENABLE(RESOURCE_USAGE) 30 31 31 namespace W TR{32 namespace WebCore { 32 33 33 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef) 34 { 35 return nullptr; 36 } 37 38 JSRetainPtr<JSStringRef> TestRunner::inspectorTestStubURL() 39 { 40 return JSStringCreateWithUTF8CString(""); 41 } 42 43 void TestRunner::platformInitialize() 34 void ResourceUsageOverlay::platformInitialize() 44 35 { 45 36 } 46 37 47 void TestRunner::installFakeHelvetica(JSStringRef configuration)38 void ResourceUsageOverlay::platformDestroy() 48 39 { 49 WTR::installFakeHelvetica(toWK(configuration).get());50 40 } 51 41 52 } // namespace WTR 42 } 43 44 #endif -
trunk/Source/cmake/OptionsWin.cmake
r245567 r246076 91 91 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_REMOTE_INSPECTOR PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 92 92 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_LOAD_STATISTICS PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 93 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_RESOURCE_USAGE PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 93 94 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SERVICE_WORKER PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 94 95 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VARIATION_FONTS PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) -
trunk/Tools/ChangeLog
r246059 r246076 1 2019-06-04 Takashi Komori <Takashi.Komori@sony.com> 2 3 [WinCairo] Implement cpu and memory measuring functions. 4 https://bugs.webkit.org/show_bug.cgi?id=198466 5 6 Reviewed by Don Olmstead. 7 8 * WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp: 9 (WTR::TestRunner::inspectorTestStubURL): 10 1 11 2019-06-04 Zan Dobersek <zdobersek@igalia.com> 2 12 -
trunk/Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp
r244723 r246076 28 28 29 29 #include "ActivateFonts.h" 30 #include <shlwapi.h> 31 #include <wininet.h> 30 32 31 33 namespace WTR { … … 38 40 JSRetainPtr<JSStringRef> TestRunner::inspectorTestStubURL() 39 41 { 40 return JSStringCreateWithUTF8CString(""); 42 wchar_t exePath[MAX_PATH]; 43 if (::GetModuleFileName(nullptr, exePath, MAX_PATH)) { 44 wchar_t drive[_MAX_DRIVE]; 45 wchar_t dir[_MAX_DIR]; 46 _wsplitpath(exePath, drive, dir, nullptr, nullptr); 47 48 wchar_t stubPath[MAX_PATH]; 49 wcsncpy(stubPath, drive, MAX_PATH); 50 wcsncat(stubPath, dir, MAX_PATH - wcslen(stubPath)); 51 wcsncat(stubPath, L"\\WebKit.resources\\WebInspectorUI\\TestStub.html", MAX_PATH - wcslen(stubPath)); 52 53 wchar_t fileURI[INTERNET_MAX_PATH_LENGTH]; 54 DWORD fileURILength = INTERNET_MAX_PATH_LENGTH; 55 UrlCreateFromPathW(stubPath, fileURI, &fileURILength, 0); 56 57 return JSStringCreateWithCharacters(fileURI, fileURILength); 58 } 59 60 return nullptr; 41 61 } 42 62
Note:
See TracChangeset
for help on using the changeset viewer.