We should have a mechanism that logs basic memory usage stats for the WebContent process at interesting points in time. Let's start with "main frame just started a load" and "main frame just completed a load"
Created attachment 295758 [details] Patch
Created attachment 295770 [details] Patch
Created attachment 295772 [details] Patch
Created attachment 295776 [details] Patch
Example log output: 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] Memory usage info dump at FrameLoadCompleted: 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] javascript_gc_heap_capacity: 5015123 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] document_count: 9 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] virtual_size: 4036255744 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] resident_size: 104173568 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] internal: 55754752 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] phys_footprint: 55918592 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] pagecache_page_count: 0 4577 com.apple.WebKit.WebContent.Development: (WebCore) [com.apple.WebKit.PerformanceLogging] compressed: 0
Created attachment 295828 [details] Patch
Created attachment 295829 [details] Patch
Attachment 295829 [details] did not pass style-queue: ERROR: Source/WebCore/page/PerformanceLogging.cpp:29: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 295834 [details] Patch
Created attachment 295841 [details] Patch
Created attachment 295842 [details] Patch Aaargh.
Comment on attachment 295842 [details] Patch Clearing flags on attachment: 295842 Committed r209181: <http://trac.webkit.org/changeset/209181>
All reviewed patches have been landed. Closing bug.