Bug 167731

Summary: [GTK] Add initial implementation of resource usage overlay
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: 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 2017-02-02 06:20:39 PST
This is quite useful for developers to debug cpu and memory usage as well as GC timers.
Comment 1 Carlos Garcia Campos 2017-02-02 06:28:18 PST
Created attachment 300406 [details]
Patch
Comment 2 Carlos Garcia Campos 2017-02-02 06:29:48 PST
You can see a screenshot here:

http://people.igalia.com/cgarcia/mb-resources-overlay.png

This is just an initial version, it doesn't have cool graphs showing the history like the Apple one, but we can add more stuff later.
Comment 3 Michael Catanzaro 2017-02-02 09:54:47 PST
Comment on attachment 300406 [details]
Patch

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

> Source/WebCore/PlatformGTK.cmake:66
> +    page/linux/ResourceUsageOverlayLinux.cpp
> +    page/linux/ResourceUsageThreadLinux.cpp

You have to add this in a Linux conditional somewhere... it's not going to work on FreeBSD or Darwin.
Comment 4 Carlos Garcia Campos 2017-02-03 05:05:14 PST
Committed r211631: <http://trac.webkit.org/changeset/211631>