Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r266388 - [Linux] Web Inspector: show per thread cpu usage
https://bugs.webkit.org/show_bug.cgi?id=215883 Reviewed by Adrian Perez de Castro. Source/JavaScriptCore: Remove platform specific getter machThread() and add thread() to return the Thread instead. The caller knows how to get the machThread or id from a Thread. * runtime/SamplingProfiler.cpp: (JSC::SamplingProfiler::reportTopBytecodes): (JSC::SamplingProfiler::machThread): Deleted. * runtime/SamplingProfiler.h: (JSC::SamplingProfiler::thread): Source/WebCore: Get per thread CPU usage and information to fill ResourceUsageData in Linux. * page/ResourceUsageThread.h: * page/cocoa/ResourceUsageThreadCocoa.mm: (WebCore::ResourceUsageThread::platformSaveStateBeforeStarting): Update to new API in SamplingProfiler. * page/linux/ResourceUsageThreadLinux.cpp: (WebCore::ResourceUsageThread::platformSaveStateBeforeStarting): Initialize m_samplingProfilerThreadID. (WebCore::threadInfoMap): (WebCore::threadCPUUsage): (WebCore::collectCPUUsage): (WebCore::ResourceUsageThread::platformCollectCPUData): (WebCore::cpuUsage): Deleted. Source/WTF: Add API to get the thread ID in Linux platform. * wtf/Threading.cpp: (WTF::Thread::initializeInThread): * wtf/Threading.h: (WTF::Thread::id const): * wtf/ThreadingPrimitives.h: * wtf/posix/ThreadingPOSIX.cpp: (WTF::Thread::currentID):
- Loading branch information
1 parent
4b72b4e
commit 3e3e9cd
Showing
12 changed files
with
253 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.