| 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 0b3c3d0d0653ab2533bc21f9cb9b304596400990..23796651e837470fd610ba7ede6a48a0f914fc9b 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -43,6 +43,7 @@
|
| #include "core/paint/PaintLayer.h"
|
| #include "core/paint/ViewPainter.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/TracedValue.h"
|
| #include "platform/geometry/FloatQuad.h"
|
| @@ -66,7 +67,14 @@ 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) {
|
| + DEFINE_STATIC_LOCAL(CustomCountHistogram, recursiveLatencyHistogram, ("Event.Latency.HitTestRecursive", 0, 10000000, 100));
|
| + recursiveLatencyHistogram.count(duration);
|
| + } else {
|
| + DEFINE_STATIC_LOCAL(CustomCountHistogram, latencyHistogram, ("Event.Latency.HitTest", 0, 10000000, 100));
|
| + latencyHistogram.count(duration);
|
| + }
|
| }
|
|
|
| private:
|
|
|