| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "DocumentStatisticsCollector.h" | 5 #include "DocumentStatisticsCollector.h" |
| 6 | 6 |
| 7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
| 8 #include "core/InputTypeNames.h" | 8 #include "core/InputTypeNames.h" |
| 9 #include "core/dom/ElementTraversal.h" | 9 #include "core/dom/ElementTraversal.h" |
| 10 #include "core/dom/NodeComputedStyle.h" | 10 #include "core/dom/NodeComputedStyle.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 // Traverse the DOM tree and collect statistics. | 242 // Traverse the DOM tree and collect statistics. |
| 243 collectFeatures(*body, features); | 243 collectFeatures(*body, features); |
| 244 features.openGraph = hasOpenGraphArticle(*head); | 244 features.openGraph = hasOpenGraphArticle(*head); |
| 245 | 245 |
| 246 double elapsedTime = monotonicallyIncreasingTime() - startTime; | 246 double elapsedTime = monotonicallyIncreasingTime() - startTime; |
| 247 Platform::current()->histogramCustomCounts("WebCore.DistillabilityUs", stati
c_cast<int>(1e6 * elapsedTime), 1, 1000000, 50); | 247 Platform::current()->histogramCustomCounts("WebCore.DistillabilityUs", stati
c_cast<int>(1e6 * elapsedTime), 1, 1000000, 50); |
| 248 | 248 |
| 249 return features; | 249 return features; |
| 250 } | 250 } |
| 251 | 251 |
| 252 } | 252 } // namespace blink |
| OLD | NEW |