Bug 188395

Summary: ResourceUsageOverlay should use physical footprint for its "Footprint" label
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, fpizlo, ggaren, gskachkov, jfbastien, keith_miller, mark.lam, msaboff, rmorisset, simon.fraser, ticaiolima, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Saam Barati 2018-08-07 16:56:14 PDT
...
Comment 1 Saam Barati 2018-08-07 17:06:35 PDT
It uses total dirty pages instead of physical footprint on darwin...
Comment 2 Saam Barati 2018-08-07 18:10:31 PDT
Created attachment 346748 [details]
patch
Comment 3 Simon Fraser (smfr) 2018-08-07 18:48:44 PDT
Comment on attachment 346748 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346748&action=review

> Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:461
> +    if (auto footprint = memoryFootprint())

I don't like how memoryFootprint() returns an optional. This isn't normally how we do error handling.
Comment 4 Saam Barati 2018-08-07 21:09:46 PDT
Comment on attachment 346748 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346748&action=review

>> Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:461
>> +    if (auto footprint = memoryFootprint())
> 
> I don't like how memoryFootprint() returns an optional. This isn't normally how we do error handling.

Also I don’t even think about this failing as really being standard error handling. A failure here is totally unexpected and not something that happens in practice. We should probably just make that function return zero in such a scenario
Comment 5 Saam Barati 2018-08-07 21:15:00 PDT
I’ll file a bug for this
Comment 6 WebKit Commit Bot 2018-08-07 21:41:35 PDT
Comment on attachment 346748 [details]
patch

Clearing flags on attachment: 346748

Committed r234686: <https://trac.webkit.org/changeset/234686>
Comment 7 WebKit Commit Bot 2018-08-07 21:41:37 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-08-07 21:42:20 PDT
<rdar://problem/43033735>