| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |