[WinCairo] Implement cpu and memory measuring functions.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Jun 2019 19:15:21 +0000 (19:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Jun 2019 19:15:21 +0000 (19:15 +0000)
commit3f826d77c715b57279b8f6c3bc2cc92451cdafdc
tree3bff369b838916b1dd3cee7474b08838a2d3e557
parentef74ba12751f59ba4e8fc45df7d747d354b571ee
[WinCairo] Implement cpu and memory measuring functions.
https://bugs.webkit.org/show_bug.cgi?id=198466

Patch by Takashi Komori <Takashi.Komori@sony.com> on 2019-06-04
Reviewed by Don Olmstead.

.:

* Source/cmake/OptionsWin.cmake:

Source/WebCore:

Tests: inspector/memory/tracking.html
       inspector/cpu-profiler/tracking.html

* PlatformWinCairo.cmake:
* page/ResourceUsageThread.h:
* page/win/ResourceUsageOverlayWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp.
(WebCore::ResourceUsageOverlay::platformInitialize):
(WebCore::ResourceUsageOverlay::platformDestroy):
* page/win/ResourceUsageThreadWin.cpp: Added.
(WebCore::ResourceUsageThread::platformSaveStateBeforeStarting):
(WebCore::fileTimeToUint64):
(WebCore::getCurrentCpuTime):
(WebCore::cpuUsage):
(WebCore::memoryUsage):
(WebCore::ResourceUsageThread::platformCollectCPUData):
(WebCore::ResourceUsageThread::platformCollectMemoryData):

Tools:

* WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp:
(WTR::TestRunner::inspectorTestStubURL):

LayoutTests:

* platform/wincairo/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
LayoutTests/ChangeLog
LayoutTests/platform/wincairo/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/PlatformWinCairo.cmake
Source/WebCore/page/ResourceUsageThread.h
Source/WebCore/page/win/ResourceUsageOverlayWin.cpp [new file with mode: 0644]
Source/WebCore/page/win/ResourceUsageThreadWin.cpp [new file with mode: 0644]
Source/cmake/OptionsWin.cmake
Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp