| 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:
|
|
|