Bug 188395 - ResourceUsageOverlay should use physical footprint for its "Footprint" label
Summary: ResourceUsageOverlay should use physical footprint for its "Footprint" label
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-07 16:56 PDT by Saam Barati
Modified: 2018-08-07 21:42 PDT (History)
14 users (show)

See Also:


Attachments
patch (2.21 KB, patch)
2018-08-07 18:10 PDT, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>