Web Inspector: add a command to InspectorMemoryAgent for getting process memory break...
authoryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2012 13:01:53 +0000 (13:01 +0000)
committeryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2012 13:01:53 +0000 (13:01 +0000)
commitbe2c02d3b0b10f61554adfdbedacc842feded120
tree67ee88d43a1b7b3823c01ad125ebb0c66c3fbfb9
parent5e6065bed837f1fbf965f28ec870698aec374840
Web Inspector: add a command to InspectorMemoryAgent for getting process memory break down
https://bugs.webkit.org/show_bug.cgi?id=87263

Reviewed by Pavel Feldman.

Source/WebCore:

Introduced new protocol command Memory.getProcessMemoryDistribution which returns
memory distribution for the inspected process. Currently only JS allocated and used
heap size is included.

* inspector/Inspector.json:
* inspector/InspectorMemoryAgent.cpp:
(WebCore::jsHeapInfo):
(WebCore):
(WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
* inspector/InspectorMemoryAgent.h:
(InspectorMemoryAgent):
* platform/chromium/PlatformSupport.h:
(PlatformSupport):

Source/WebKit/chromium:

Added an API for retrieving render process private and shared memory in bytes.

* public/platform/WebKitPlatformSupport.h:
(WebKitPlatformSupport):
(WebKit::WebKitPlatformSupport::getProcessMemorySize):
* src/PlatformSupport.cpp:
(WebCore::PlatformSupport::getProcessMemorySize):
(WebCore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/Inspector.json
Source/WebCore/inspector/InspectorMemoryAgent.cpp
Source/WebCore/inspector/InspectorMemoryAgent.h
Source/WebCore/inspector/InspectorTimelineAgent.cpp
Source/WebCore/platform/chromium/PlatformSupport.h
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h
Source/WebKit/chromium/src/PlatformSupport.cpp