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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1631143003: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 88186a58e368e7f72fe904e233c96f6eefafdf0e..e3eed1bdb83e9777312224a305e06fa06cf7202b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -66,7 +66,13 @@ public:
~HitTestLatencyRecorder()
{
int duration = static_cast<int>((WTF::monotonicallyIncreasingTime() - m_start) * 1000000);
- Platform::current()->histogramCustomCounts(m_allowsChildFrameContent ? "Event.Latency.HitTestRecursive" : "Event.Latency.HitTest", duration, 0, 10000000, 100);
+ if (m_allowsChildFrameContent) {
+ static Platform::HistogramCacheSlot histogram_cache = 0;
+ Platform::current()->histogramCustomCounts("Event.Latency.HitTestRecursive", duration, 0, 10000000, 100, &histogram_cache);
+ } else {
+ static Platform::HistogramCacheSlot histogram_cache = 0;
+ Platform::current()->histogramCustomCounts("Event.Latency.HitTest", duration, 0, 10000000, 100, &histogram_cache);
+ }
}
private:
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestCache.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698