-
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): Source/WebKit/chromium: Tested by webkit_unit_tests. * tests/MemoryInstrumentationTest.cpp: (WebCore::TEST): Source/WTF: Tested by webkit_unit_tests. * 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@128300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0a5ff5ff