Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2615713004: Add UMA histogram Blink.PrePaint.UpdateTime (Closed)
Patch Set: Rebase on origin/master Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2969 matching lines...) Expand 10 before | Expand all | Expand 10 after
2980 if (scroller) { 2980 if (scroller) {
2981 DCHECK(scroller->scrollAnchor()); 2981 DCHECK(scroller->scrollAnchor());
2982 scroller->scrollAnchor()->adjust(); 2982 scroller->scrollAnchor()->adjust();
2983 } 2983 }
2984 } 2984 }
2985 m_anchoringAdjustmentQueue.clear(); 2985 m_anchoringAdjustmentQueue.clear();
2986 } 2986 }
2987 2987
2988 void FrameView::updatePaintProperties() { 2988 void FrameView::updatePaintProperties() {
2989 TRACE_EVENT0("blink", "FrameView::updatePaintProperties"); 2989 TRACE_EVENT0("blink", "FrameView::updatePaintProperties");
2990 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.PrePaint.UpdateTime");
2990 2991
2991 if (!m_paintController) 2992 if (!m_paintController)
2992 m_paintController = PaintController::create(); 2993 m_paintController = PaintController::create();
2993 2994
2994 forAllNonThrottledFrameViews([](FrameView& frameView) { 2995 forAllNonThrottledFrameViews([](FrameView& frameView) {
2995 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint); 2996 frameView.lifecycle().advanceTo(DocumentLifecycle::InPrePaint);
2996 }); 2997 });
2997 2998
2998 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) 2999 if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
2999 PrePaintTreeWalk().walk(*this); 3000 PrePaintTreeWalk().walk(*this);
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
4916 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; 4917 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount;
4917 ++reason) { 4918 ++reason) {
4918 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { 4919 if (m_mainThreadScrollingReasonsCounter[reason] > 0) {
4919 reasons |= 1 << (reason - 1); 4920 reasons |= 1 << (reason - 1);
4920 } 4921 }
4921 } 4922 }
4922 return reasons; 4923 return reasons;
4923 } 4924 }
4924 4925
4925 } // namespace blink 4926 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698