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

Unified Diff: Source/core/layout/HitTestCache.cpp

Issue 1211973004: Add another uma metric for HitTesting validity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/layout/HitTestResult.h » ('j') | Source/core/layout/HitTestResult.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/HitTestCache.cpp
diff --git a/Source/core/layout/HitTestCache.cpp b/Source/core/layout/HitTestCache.cpp
index 7a37eb7147d716f7fb370782969ec6958a68d81f..8ab3377278f84a396d7067cc8e9b4174c35650ab 100644
--- a/Source/core/layout/HitTestCache.cpp
+++ b/Source/core/layout/HitTestCache.cpp
@@ -38,6 +38,7 @@ void HitTestCache::verifyCachedResult(const HitTestResult& expected, const HitTe
ValidityHistogramMetric metric;
if (!actual.equalForCacheability(expected)) {
metric = expected.hitTestLocation().isRectBasedTest() ? ValidityHistogramMetric::INCORRECT_RECT_BASED_EXACT_MATCH : ValidityHistogramMetric::INCORRECT_POINT_EXACT_MATCH;
+ Platform::current()->histogramSparse("Event.HitTestValidityScore", static_cast<int>(actual.equalityScore(expected)));
// ASSERT that the cache hit is the same as the actual result.
ASSERT_NOT_REACHED();
« no previous file with comments | « no previous file | Source/core/layout/HitTestResult.h » ('j') | Source/core/layout/HitTestResult.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698