Changeset 86816 in webkit
- Timestamp:
- May 18, 2011 8:21:04 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86815 r86816 1 2011-05-18 Nat Duca <nduca@chromium.org> 2 3 Reviewed by James Robinson. 4 5 [chromium] Add histograms for paint times 6 https://bugs.webkit.org/show_bug.cgi?id=61010 7 8 * platform/graphics/chromium/ContentLayerChromium.cpp: 9 (WebCore::ContentLayerPainter::paint): 10 1 11 2011-05-18 Adrienne Walker <enne@google.com> 2 12 -
trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp
r86805 r86816 42 42 #include "LayerTextureUpdaterCanvas.h" 43 43 #include "LayerTilerChromium.h" 44 #include "PlatformBridge.h" 44 45 #include "RenderLayerBacking.h" 45 46 #include "TextStream.h" 47 #include <wtf/CurrentTime.h> 46 48 47 49 // Maximum size the width or height of this layer can be before enabling tiling … … 64 66 virtual void paint(GraphicsContext& context, const IntRect& contentRect) 65 67 { 68 double paintStart = currentTime(); 66 69 context.clearRect(contentRect); 67 70 context.clip(contentRect); 68 71 m_owner->paintGraphicsLayerContents(context, contentRect); 72 double paintEnd = currentTime(); 73 double pixelsPerSec = (contentRect.width() * contentRect.height()) / (paintEnd - paintStart); 74 PlatformBridge::histogramCustomCounts("Renderer4.AccelContentPaintDurationMS", (paintEnd - paintStart) * 1000, 0, 120, 30); 75 PlatformBridge::histogramCustomCounts("Renderer4.AccelContentPaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30); 69 76 } 70 77 private: -
trunk/Source/WebKit/chromium/ChangeLog
r86813 r86816 1 2011-05-18 Nat Duca <nduca@chromium.org> 2 3 Reviewed by James Robinson. 4 5 [chromium] Add histograms for paint times 6 https://bugs.webkit.org/show_bug.cgi?id=61010 7 8 * src/WebViewImpl.cpp: 9 (WebKit::WebViewImpl::animate): 10 (WebKit::WebViewImpl::layout): 11 (WebKit::WebViewImpl::paint): 12 (WebKit::WebViewImplContentPainter::paint): 13 1 14 2011-05-17 MORITA Hajime <morrita@google.com> 2 15 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r86805 r86816 1005 1005 void WebViewImpl::animate() 1006 1006 { 1007 TRACE_EVENT("WebViewImpl::animate", this, 0); 1007 1008 #if ENABLE(REQUEST_ANIMATION_FRAME) 1008 1009 WebFrameImpl* webframe = mainFrameImpl(); … … 1022 1023 void WebViewImpl::layout() 1023 1024 { 1025 TRACE_EVENT("WebViewImpl::layout", this, 0); 1024 1026 #if USE(ACCELERATED_COMPOSITING) 1025 1027 // FIXME: RTL style not supported by the compositor yet. … … 1097 1099 #endif 1098 1100 } else { 1101 double paintStart = currentTime(); 1099 1102 WebFrameImpl* webframe = mainFrameImpl(); 1100 1103 if (webframe) 1101 1104 webframe->paint(canvas, rect); 1105 double paintEnd = currentTime(); 1106 double pixelsPerSec = (rect.width * rect.height) / (paintEnd - paintStart); 1107 PlatformBridge::histogramCustomCounts("Renderer4.SoftwarePaintDurationMS", (paintEnd - paintStart) * 1000, 0, 120, 30); 1108 PlatformBridge::histogramCustomCounts("Renderer4.SoftwarePaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30); 1102 1109 } 1103 1110 } … … 2421 2428 virtual void paint(GraphicsContext& context, const IntRect& contentRect) 2422 2429 { 2430 double paintStart = currentTime(); 2423 2431 Page* page = m_webViewImpl->page(); 2424 2432 if (!page) … … 2426 2434 FrameView* view = page->mainFrame()->view(); 2427 2435 view->paintContents(&context, contentRect); 2436 double paintEnd = currentTime(); 2437 double pixelsPerSec = (contentRect.width() * contentRect.height()) / (paintEnd - paintStart); 2438 PlatformBridge::histogramCustomCounts("Renderer4.AccelRootPaintDurationMS", (paintEnd - paintStart) * 1000, 0, 120, 30); 2439 PlatformBridge::histogramCustomCounts("Renderer4.AccelRootPaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30); 2428 2440 } 2429 2441
Note: See TracChangeset
for help on using the changeset viewer.