Bug 150599 - Add a debug overlay with information about web process resource usage.
Summary: Add a debug overlay with information about web process resource usage.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: Performance
Depends on:
Blocks:
 
Reported: 2015-10-27 12:21 PDT by Andreas Kling
Modified: 2015-10-31 22:48 PDT (History)
7 users (show)

See Also:


Attachments
Draft for EWS (65.49 KB, patch)
2015-10-27 13:01 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Screen shot of draft patch in action (386.41 KB, image/png)
2015-10-27 13:03 PDT, Andreas Kling
no flags Details
Draft for EWS (52.00 KB, patch)
2015-10-27 15:14 PDT, Andreas Kling
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews113 for mac-yosemite (322.22 KB, application/zip)
2015-10-27 16:11 PDT, Build Bot
no flags Details
Draft for EWS (52.03 KB, patch)
2015-10-27 17:36 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Draft for EWS (52.08 KB, patch)
2015-10-27 18:09 PDT, Andreas Kling
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews115 for mac-yosemite (72.63 KB, application/zip)
2015-10-27 19:01 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews102 for mac-mavericks (99.00 KB, application/zip)
2015-10-27 19:07 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews107 for mac-mavericks-wk2 (273.64 KB, application/zip)
2015-10-27 19:31 PDT, Build Bot
no flags Details
Draft for EWS (57.32 KB, patch)
2015-10-28 14:10 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff
Patch (71.18 KB, patch)
2015-10-30 15:04 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2015-10-27 12:21:46 PDT
I'm putting together a debug HUD overlay that reports information about memory and CPU usage in the web process.
Comment 1 Andreas Kling 2015-10-27 13:01:22 PDT
Created attachment 264151 [details]
Draft for EWS
Comment 2 Andreas Kling 2015-10-27 13:03:26 PDT
Created attachment 264152 [details]
Screen shot of draft patch in action
Comment 3 Andreas Kling 2015-10-27 15:14:56 PDT
Created attachment 264165 [details]
Draft for EWS

Oh, rebased on ToT.
Comment 4 WebKit Commit Bot 2015-10-27 15:17:14 PDT
Attachment 264165 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:62:  An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:33:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:35:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:40:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:46:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:147:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:160:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:167:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:320:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:355:  Missing space after ,  [whitespace/comma] [3]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:457:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:492:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
Total errors found: 13 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Build Bot 2015-10-27 16:11:14 PDT
Comment on attachment 264165 [details]
Draft for EWS

Attachment 264165 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/346010

Number of test failures exceeded the failure limit.
Comment 6 Build Bot 2015-10-27 16:11:17 PDT
Created attachment 264170 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 7 Andreas Kling 2015-10-27 17:36:04 PDT
Created attachment 264183 [details]
Draft for EWS
Comment 8 WebKit Commit Bot 2015-10-27 17:38:47 PDT
Attachment 264183 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:62:  An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:33:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:35:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:40:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:46:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:148:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:151:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:170:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:323:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:358:  Missing space after ,  [whitespace/comma] [3]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:460:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:495:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
Total errors found: 13 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Andreas Kling 2015-10-27 18:09:28 PDT
Created attachment 264186 [details]
Draft for EWS
Comment 10 WebKit Commit Bot 2015-10-27 18:11:58 PDT
Attachment 264186 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:33:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:35:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:40:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:46:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:148:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:151:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:170:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:323:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:358:  Missing space after ,  [whitespace/comma] [3]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:460:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:495:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
Total errors found: 12 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Build Bot 2015-10-27 19:01:15 PDT
Comment on attachment 264186 [details]
Draft for EWS

Attachment 264186 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/346534

Number of test failures exceeded the failure limit.
Comment 12 Build Bot 2015-10-27 19:01:17 PDT
Created attachment 264188 [details]
Archive of layout-test-results from ews115 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 13 Build Bot 2015-10-27 19:07:16 PDT
Comment on attachment 264186 [details]
Draft for EWS

Attachment 264186 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/346542

Number of test failures exceeded the failure limit.
Comment 14 Build Bot 2015-10-27 19:07:18 PDT
Created attachment 264190 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 15 Build Bot 2015-10-27 19:31:49 PDT
Comment on attachment 264186 [details]
Draft for EWS

Attachment 264186 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/346611

Number of test failures exceeded the failure limit.
Comment 16 Build Bot 2015-10-27 19:31:51 PDT
Created attachment 264191 [details]
Archive of layout-test-results from ews107 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 17 Andreas Kling 2015-10-28 14:10:31 PDT
Created attachment 264241 [details]
Draft for EWS

Now with WebCore::Settings and WK2 SPI preferences hookups. Layout tests hopefully working again.
Comment 18 WebKit Commit Bot 2015-10-28 14:17:46 PDT
Attachment 264241 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:36:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:38:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:43:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:49:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:151:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:154:  Missing space before {  [whitespace/braces] [5]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:173:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:326:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:361:  Missing space after ,  [whitespace/comma] [3]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:463:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
ERROR: Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:498:  l is incorrectly named. Don't use the single letter 'l' as an identifier name.  [readability/naming] [4]
Total errors found: 13 in 30 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Andreas Kling 2015-10-30 15:04:06 PDT
Created attachment 264426 [details]
Patch
Comment 20 WebKit Commit Bot 2015-10-30 15:05:48 PDT
Attachment 264426 [details] did not pass style-queue:


ERROR: Source/WebCore/page/ResourceUsageOverlay.cpp:30:  You should not add a blank line before implementation file's own header.  [build/include_order] [4]
ERROR: Source/WebCore/PlatformMac.cmake:272:  Alphabetical sorting problem. "page/cocoa/ResourceUsageOverlayCocoa.mm" should be before "page/cocoa/UserAgent.mm".  [list/order] [5]
Total errors found: 2 in 42 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 WebKit Commit Bot 2015-10-31 19:30:38 PDT
Comment on attachment 264426 [details]
Patch

Clearing flags on attachment: 264426

Committed r191849: <http://trac.webkit.org/changeset/191849>
Comment 22 WebKit Commit Bot 2015-10-31 19:30:43 PDT
All reviewed patches have been landed.  Closing bug.
Comment 23 Andreas Kling 2015-10-31 22:48:44 PDT
Committed r191851: <http://trac.webkit.org/changeset/191851>