[Webkit-unassigned] [Bug 200391] Implement memory monitoring functions for Linux OS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 20 04:19:07 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=200391
Zan Dobersek <zan at falconsigh.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zan at falconsigh.net
Attachment #377965|review? |review+
Flags| |
--- Comment #6 from Zan Dobersek <zan at falconsigh.net> ---
Comment on attachment 377965
--> https://bugs.webkit.org/attachment.cgi?id=377965
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=377965&action=review
Besides MemoryFootprintLinux.cpp, similar functionality also exists in bmalloc. At some point it would be nice to bring all this into a single place.
> Source/WTF/wtf/linux/ProcessMemoryFootprint.h:30
> +#if OS(LINUX)
> +#include <sys/resource.h>
Nit: this would deserve an empty line in between.
> Source/WTF/wtf/linux/ProcessMemoryFootprint.h:37
> +
> +
Nit: and this can do with a single empty line.
> Source/WTF/wtf/linux/ProcessMemoryFootprint.h:46
> + return { ps.resident, static_cast<uint64_t>(ru.ru_maxrss)*1024 };
Nit: spaces around the multiplication operand.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190920/d28c49b1/attachment.html>
More information about the webkit-unassigned
mailing list