ResourceUsageOverlay should use physical footprint for its "Footprint" label
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2018 04:41:29 +0000 (04:41 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Aug 2018 04:41:29 +0000 (04:41 +0000)
commit44d2f4b1f1e5ea7f13fbb7a1e20afec9824f008e
tree1c7ac0fb3fa06bd3edcca5fa4f8b30b384d309ef
parentd0882b708b96af2fe1cd4994f95a57348506c9bf
ResourceUsageOverlay should use physical footprint for its "Footprint" label
https://bugs.webkit.org/show_bug.cgi?id=188395

Reviewed by Simon Fraser.

Let's use physical footprint on Cocoa for the number we say is "footprint".
Before, we were just using the number of dirty pages multiplies by
page size. This number was an upper bound on footprint since it
doesn't take into account compressed memory.

* page/cocoa/ResourceUsageOverlayCocoa.mm:
(WebCore::ResourceUsageOverlay::platformDraw):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm