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

Side by Side Diff: Source/core/page/Console.cpp

Issue 15816002: Remove console.profiles from window.console API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Console.h ('k') | Source/core/page/Console.idl » ('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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/Console.h ('k') | Source/core/page/Console.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698