Skip to content
  • loislo@chromium.org's avatar
    Web Inspector: NMI move String* instrumentation to wtf. · 88541ee3
    loislo@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96405
    
    Reviewed by Yury Semikhatsky.
    
    This instrumentation is solving the problem with substrings and removes traits based code which is hard to upstream.
    
    Source/WebCore:
    
    * dom/WebCoreMemoryInstrumentation.cpp:
    (WebCore):
    * dom/WebCoreMemoryInstrumentation.h:
    (WebCore):
    
    * dom/WebCoreMemoryInstrumentation.cpp:
    (WebCore):
    * dom/WebCoreMemoryInstrumentation.h:
    (WebCore):
    * inspector/MemoryInstrumentationImpl.cpp:
    (WebCore::MemoryInstrumentationImpl::countObjectSize):
    * platform/SharedBuffer.cpp:
    (WebCore::SharedBuffer::reportMemoryUsage):
    
    Source/WebKit/chromium:
    
    Tested by webkit_unit_tests.
    
    * tests/MemoryInstrumentationTest.cpp:
    (WebCore::InstrumentedUndefined::reportMemoryUsage):
    (WebCore::TEST):
    
    Source/WTF:
    
    Tested by webkit_unit_tests.
    
    * wtf/MemoryInstrumentation.h:
    (WebCore):
    (WebCore::MemoryInstrumentation::addRootObject):
    (WebCore::MemoryObjectInfo::reportObjectInfo):
    (WebCore::MemoryClassInfo::MemoryClassInfo):
    * wtf/text/AtomicString.h:
    (AtomicString):
    (WTF::AtomicString::reportMemoryUsage):
    * wtf/text/StringImpl.h:
    (StringImpl):
    (WTF::StringImpl::reportMemoryUsage):
    * wtf/text/WTFString.h:
    (String):
    (WTF::String::reportMemoryUsage):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    88541ee3