Bug 164591 - [Linux] Memory process values shown by the WebMemorySampler in linux are wrong
Summary: [Linux] Memory process values shown by the WebMemorySampler in linux are wrong
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2016-11-10 07:38 PST by Carlos Garcia Campos
Modified: 2016-11-10 08:07 PST (History)
1 user (show)

See Also:


Attachments
Patch (5.07 KB, patch)
2016-11-10 07:41 PST, Carlos Garcia Campos
mcatanzaro: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2016-11-10 07:38:24 PST
It's parsing /proc/self/statm, and returning the values as if they were bytes, but they are number of pages, so to get the bytes we need to take the page size into account. In r208534 I added a method to get /proc/self/statm values in bytes to Platform layer, so we can simply use that instead.
Comment 1 Carlos Garcia Campos 2016-11-10 07:41:55 PST
Created attachment 294371 [details]
Patch
Comment 2 Carlos Garcia Campos 2016-11-10 08:07:06 PST
Committed r208538: <http://trac.webkit.org/changeset/208538>