Skip to content
  • yurys@chromium.org's avatar
    Web Inspector: add external resources size to the native memory diagram · 442871b5
    yurys@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=89754
    
    Reviewed by Vsevolod Vlasov.
    
    Size of external strings and arrays is now reported through the inspector
    protocol and displayed on the native memory chart.
    
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/js/ScriptProfiler.h:
    (WebCore):
    (WebCore::ScriptProfiler::visitJSDOMWrappers):
    (WebCore::ScriptProfiler::visitExternalJSStrings):
    (WebCore::ScriptProfiler::visitExternalJSArrays):
    * bindings/v8/ScriptProfiler.cpp:
    (WebCore::ScriptProfiler::visitJSDOMWrappers):
    (WebCore::ScriptProfiler::visitExternalJSStrings):
    (WebCore::ScriptProfiler::visitExternalJSArrays):
    (WebCore):
    * bindings/v8/ScriptProfiler.h:
    (WebCore):
    (ScriptProfiler):
    * bindings/v8/V8Binding.cpp:
    (WebCore::WebCoreStringResource::visitStrings):
    (WebCore::V8BindingPerIsolateData::visitJSExternalStrings):
    * bindings/v8/V8Binding.h:
    (WebCore):
    (V8BindingPerIsolateData):
    * inspector/BindingVisitors.h: Renamed from Source/WebCore/inspector/DOMWrapperVisitor.h.
    (WTF):
    (WebCore):
    (NodeWrapperVisitor):
    (WebCore::NodeWrapperVisitor::~NodeWrapperVisitor):
    (ExternalStringVisitor):
    (WebCore::ExternalStringVisitor::~ExternalStringVisitor):
    (ExternalArrayVisitor):
    (WebCore::ExternalArrayVisitor::~ExternalArrayVisitor):
    * inspector/InspectorMemoryAgent.cpp:
    (MemoryBlockName):
    (WebCore):
    (WebCore::jsExternalResourcesInfo):
    (WebCore::InspectorMemoryAgent::getProcessMemoryDistribution):
    * inspector/front-end/NativeMemorySnapshotView.js:
    (WebInspector.MemoryBlockViewProperties._initialize):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121144 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    442871b5