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

Unified Diff: Source/core/css/parser/CSSParserImpl.cpp

Issue 1064563004: Add separate blink_style category to blink style tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserImpl.cpp
diff --git a/Source/core/css/parser/CSSParserImpl.cpp b/Source/core/css/parser/CSSParserImpl.cpp
index 6567aa44b3cdf90b1d56c862c6bddbbdedabb639..52b248d3fbc281ea58bc967f8aea583f1886de3e 100644
--- a/Source/core/css/parser/CSSParserImpl.cpp
+++ b/Source/core/css/parser/CSSParserImpl.cpp
@@ -125,15 +125,15 @@ PassRefPtrWillBeRawPtr<StyleRuleBase> CSSParserImpl::parseRule(const String& str
void CSSParserImpl::parseStyleSheet(const String& string, const CSSParserContext& context, StyleSheetContents* styleSheet)
{
TRACE_EVENT_BEGIN2(
- "blink", "CSSParserImpl::parseStyleSheet",
+ "blink,blink_style", "CSSParserImpl::parseStyleSheet",
"baseUrl", context.baseURL().string().utf8(),
"mode", context.mode());
- TRACE_EVENT_BEGIN0("blink", "CSSParserImpl::parseStyleSheet.tokenize");
+ TRACE_EVENT_BEGIN0("blink,blink_style", "CSSParserImpl::parseStyleSheet.tokenize");
CSSTokenizer::Scope scope(string);
- TRACE_EVENT_END0("blink", "CSSParserImpl::parseStyleSheet.tokenize");
+ TRACE_EVENT_END0("blink,blink_style", "CSSParserImpl::parseStyleSheet.tokenize");
- TRACE_EVENT_BEGIN0("blink", "CSSParserImpl::parseStyleSheet.parse");
+ TRACE_EVENT_BEGIN0("blink,blink_style", "CSSParserImpl::parseStyleSheet.parse");
CSSParserImpl parser(context, styleSheet);
bool firstRuleValid = parser.consumeRuleList(scope.tokenRange(), TopLevelRuleList, [&styleSheet](PassRefPtrWillBeRawPtr<StyleRuleBase> rule) {
if (rule->isCharsetRule())
@@ -141,10 +141,10 @@ void CSSParserImpl::parseStyleSheet(const String& string, const CSSParserContext
styleSheet->parserAppendRule(rule);
});
styleSheet->setHasSyntacticallyValidCSSHeader(firstRuleValid);
- TRACE_EVENT_END0("blink", "CSSParserImpl::parseStyleSheet.parse");
+ TRACE_EVENT_END0("blink,blink_style", "CSSParserImpl::parseStyleSheet.parse");
TRACE_EVENT_END2(
- "blink", "CSSParserImpl::parseStyleSheet",
+ "blink,blink_style", "CSSParserImpl::parseStyleSheet",
"tokenCount", scope.tokenCount(),
"length", string.length());
}
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698