Web Inspector: cached images memory instrumentation regression after r124744
authoryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 09:16:30 +0000 (09:16 +0000)
committeryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2012 09:16:30 +0000 (09:16 +0000)
commit52a3d03569c739ed09db9723ac1e3f070169d791
tree6eacd43065ffb05dac64a51140a14593d0aca35b
parente64e4514e5cca8f56a7fba5972b94d3fb774661d
Web Inspector: cached images memory instrumentation regression after r124744
https://bugs.webkit.org/show_bug.cgi?id=93366

Reviewed by Vsevolod Vlasov.

Source/WebCore:

CachedImage memory usage data no includes size of both encoded and
decoded data.

Test: inspector/profiler/memory-instrumentation-cached-images.html

* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::reportMemoryUsage):

LayoutTests:

Added a sanity test checking that memory usage data includes decoded image size.

* inspector/profiler/memory-instrumentation-cached-images-expected.txt: Added.
* inspector/profiler/memory-instrumentation-cached-images.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/profiler/memory-instrumentation-cached-images-expected.txt [new file with mode: 0644]
LayoutTests/inspector/profiler/memory-instrumentation-cached-images.html [new file with mode: 0644]
LayoutTests/inspector/profiler/resources/image.jpeg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedImage.cpp