| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 if (!page) | 188 if (!page) |
| 189 return; | 189 return; |
| 190 | 190 |
| 191 if (!InspectorInstrumentation::profilerEnabled(page)) | 191 if (!InspectorInstrumentation::profilerEnabled(page)) |
| 192 return; | 192 return; |
| 193 | 193 |
| 194 RefPtr<ScriptProfile> profile = ScriptProfiler::stop(state, title); | 194 RefPtr<ScriptProfile> profile = ScriptProfiler::stop(state, title); |
| 195 if (!profile) | 195 if (!profile) |
| 196 return; | 196 return; |
| 197 | 197 |
| 198 m_profiles.append(profile); | |
| 199 RefPtr<ScriptCallStack> callStack(createScriptCallStack(state, 1)); | 198 RefPtr<ScriptCallStack> callStack(createScriptCallStack(state, 1)); |
| 200 InspectorInstrumentation::addProfile(page, profile, callStack); | 199 InspectorInstrumentation::addProfile(page, profile, callStack); |
| 201 } | 200 } |
| 202 | 201 |
| 203 | 202 |
| 204 void Console::time(const String& title) | 203 void Console::time(const String& title) |
| 205 { | 204 { |
| 206 InspectorInstrumentation::startConsoleTiming(m_frame, title); | 205 InspectorInstrumentation::startConsoleTiming(m_frame, title); |
| 207 TRACE_EVENT_COPY_ASYNC_BEGIN0("webkit", title.utf8().data(), this); | 206 TRACE_EVENT_COPY_ASYNC_BEGIN0("webkit", title.utf8().data(), this); |
| 208 } | 207 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 241 } |
| 243 | 242 |
| 244 Page* Console::page() const | 243 Page* Console::page() const |
| 245 { | 244 { |
| 246 if (!m_frame) | 245 if (!m_frame) |
| 247 return 0; | 246 return 0; |
| 248 return m_frame->page(); | 247 return m_frame->page(); |
| 249 } | 248 } |
| 250 | 249 |
| 251 } // namespace WebCore | 250 } // namespace WebCore |
| OLD | NEW |