Bug 164591

Summary: [Linux] Memory process values shown by the WebMemorySampler in linux are wrong
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2 Keywords: Gtk
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mcatanzaro: review+

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>