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

Side by Side Diff: sky/engine/core/frame/ConsoleBase.cpp

Issue 691663002: Unfork Sky's trace events (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/fetch/ResourceFetcher.cpp ('k') | sky/engine/core/frame/DOMTimer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 String message = title + String::format(": %.3fms", elapsed * 1000); 164 String message = title + String::format(": %.3fms", elapsed * 1000);
165 165
166 RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(ConsoleAPIMes sageSource, DebugMessageLevel, message); 166 RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(ConsoleAPIMes sageSource, DebugMessageLevel, message);
167 consoleMessage->setType(TimeEndMessageType); 167 consoleMessage->setType(TimeEndMessageType);
168 consoleMessage->setScriptState(scriptState); 168 consoleMessage->setScriptState(scriptState);
169 reportMessageToConsole(consoleMessage.release()); 169 reportMessageToConsole(consoleMessage.release());
170 } 170 }
171 171
172 void ConsoleBase::timeStamp(const String& title) 172 void ConsoleBase::timeStamp(const String& title)
173 { 173 {
174 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "TimeSt amp", "data", InspectorTimeStampEvent::data(context(), title)); 174 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "TimeSt amp", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorTimeStampEvent::data(context() , title));
175 } 175 }
176 176
177 void ConsoleBase::timeline(ScriptState* scriptState, const String& title) 177 void ConsoleBase::timeline(ScriptState* scriptState, const String& title)
178 { 178 {
179 } 179 }
180 180
181 void ConsoleBase::timelineEnd(ScriptState* scriptState, const String& title) 181 void ConsoleBase::timelineEnd(ScriptState* scriptState, const String& title)
182 { 182 {
183 } 183 }
184 184
(...skipping 27 matching lines...) Expand all
212 consoleMessage->setScriptArguments(arguments); 212 consoleMessage->setScriptArguments(arguments);
213 213
214 size_t stackSize = printTrace ? ScriptCallStack::maxCallStackSizeToCapture : 1; 214 size_t stackSize = printTrace ? ScriptCallStack::maxCallStackSizeToCapture : 1;
215 RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(stackSize) ); 215 RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(stackSize) );
216 consoleMessage->setCallStack(callStack); 216 consoleMessage->setCallStack(callStack);
217 217
218 reportMessageToConsole(consoleMessage.release()); 218 reportMessageToConsole(consoleMessage.release());
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/ResourceFetcher.cpp ('k') | sky/engine/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698