Chromium Code Reviews| Index: Source/core/inspector/InspectorProfilerAgent.cpp |
| diff --git a/Source/core/inspector/InspectorProfilerAgent.cpp b/Source/core/inspector/InspectorProfilerAgent.cpp |
| index 26ed829d975becae4cd0e4024b11f9db3d5428ae..1aa2d4735803d47ebc63910bf88b765f7af6d308 100644 |
| --- a/Source/core/inspector/InspectorProfilerAgent.cpp |
| +++ b/Source/core/inspector/InspectorProfilerAgent.cpp |
| @@ -32,6 +32,9 @@ |
| #include "bindings/core/v8/ScriptCallStackFactory.h" |
| #include "bindings/core/v8/ScriptProfiler.h" |
| +#include "core/dom/ExecutionContext.h" |
|
yurys
2014/08/01 13:06:40
You don't seem to need this include, forward decla
loislo
2014/08/01 13:32:32
Done.
|
| +#include "core/frame/ConsoleTypes.h" |
| +#include "core/frame/UseCounter.h" |
| #include "core/inspector/InjectedScript.h" |
| #include "core/inspector/InjectedScriptHost.h" |
| #include "core/inspector/InspectorOverlay.h" |
| @@ -39,7 +42,6 @@ |
| #include "core/inspector/InstrumentingAgents.h" |
| #include "core/inspector/ScriptCallStack.h" |
| #include "core/inspector/ScriptProfile.h" |
| -#include "core/frame/ConsoleTypes.h" |
| #include "wtf/CurrentTime.h" |
| #include "wtf/text/StringConcatenate.h" |
| @@ -103,8 +105,9 @@ InspectorProfilerAgent::~InspectorProfilerAgent() |
| { |
| } |
| -void InspectorProfilerAgent::consoleProfile(const String& title, ScriptState* scriptState) |
| +void InspectorProfilerAgent::consoleProfile(ExecutionContext* context, const String& title, ScriptState* scriptState) |
| { |
| + UseCounter::count(context, UseCounter::DevToolsConsoleProfile); |
| ASSERT(m_frontend && enabled()); |
| String id = nextProfileId(); |
| m_startedProfiles.append(ProfileDescriptor(id, title)); |