-
yurys@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=98138 Reviewed by Pavel Feldman. Source/WebCore: Replaced addHashCountedSet calls with addMember that now automatically detects HashCountedSet and calls appropriate routine. * css/CSSImageGeneratorValue.cpp: (WebCore::CSSImageGeneratorValue::reportBaseClassMemoryUsage): * loader/cache/CachedResource.cpp: Source/WebKit/chromium: Added unit test for HashCountedSet memory instrumentation. * tests/MemoryInstrumentationTest.cpp: Source/WTF: Added memory instrumentation for HashCountedSet. Extracted common routines for collecting memory info for an iterable sequence. * GNUmakefile.list.am: * WTF.gypi: * WTF.pro: * WTF.vcproj/WTF.vcproj: * WTF.xcodeproj/project.pbxproj: * wtf/MemoryInstrumentation.h: (WTF): * wtf/MemoryInstrumentationHashCountedSet.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashSet.h. (WTF): (WTF::reportMemoryUsage): * wtf/MemoryInstrumentationHashMap.h: (WTF::reportMemoryUsage): * wtf/MemoryInstrumentationHashSet.h: * wtf/MemoryInstrumentationSequence.h: Copied from Source/WTF/wtf/MemoryInstrumentationHashMap.h. (WTF): (WTF::SequenceMemoryInstrumentationTraits::reportMemoryUsage): (WTF::reportSequenceMemoryUsage): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4d3e1731