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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2753183002: DevTools: migrate remaining parse html probe to probes. (Closed)
Patch Set: review comment addressed. Created 3 years, 9 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 | third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index 873d7f74ddc7b45f978616fb99fa7839c5903487..f0086fc9d02baf61d2d8617f2d004094ca721cc3 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -666,10 +666,7 @@ void HTMLDocumentParser::pumpTokenizer() {
// FIXME: m_input.current().length() is only accurate if we end up parsing the
// whole buffer in this pump. We should pass how much we parsed as part of
// didWriteHTML instead of willWriteHTML.
- TRACE_EVENT_BEGIN1(
- "devtools.timeline", "ParseHTML", "beginData",
- InspectorParseHtmlEvent::beginData(
- document(), m_input.current().currentLine().zeroBasedInt()));
+ probe::ParseHTML probe(document(), this);
if (!isParsingFragment())
m_xssAuditor.init(document(), &m_xssAuditorDelegate);
@@ -724,10 +721,6 @@ void HTMLDocumentParser::pumpTokenizer() {
scanAndPreload(m_preloadScanner.get());
}
}
-
- TRACE_EVENT_END1("devtools.timeline", "ParseHTML", "endData",
- InspectorParseHtmlEvent::endData(
- m_input.current().currentLine().zeroBasedInt() - 1));
}
void HTMLDocumentParser::constructTreeFromHTMLToken() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorTraceEvents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698