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

Unified Diff: sky/engine/v8_inspector/InjectedScriptBase.cpp

Issue 889823002: Remove TRACE_EVENT indirection through blink::Platform (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/engine/v8_inspector/PageScriptDebugServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/v8_inspector/InjectedScriptBase.cpp
diff --git a/sky/engine/v8_inspector/InjectedScriptBase.cpp b/sky/engine/v8_inspector/InjectedScriptBase.cpp
index 0a3466dfac0e99016d115c62e0f999b62c6610b7..7110c38a2ee5ce43dc668436df9bc8f58078ae79 100644
--- a/sky/engine/v8_inspector/InjectedScriptBase.cpp
+++ b/sky/engine/v8_inspector/InjectedScriptBase.cpp
@@ -34,7 +34,6 @@
#include "sky/engine/v8_inspector/InjectedScriptBase.h"
#include "sky/engine/bindings/core/v8/ScriptFunctionCall.h"
-#include "sky/engine/core/inspector/InspectorTraceEvents.h"
#include "sky/engine/platform/JSONValues.h"
#include "sky/engine/wtf/text/WTFString.h"
@@ -113,10 +112,6 @@ const ScriptValue& InjectedScriptBase::injectedScriptObject() const
ScriptValue InjectedScriptBase::callFunctionWithEvalEnabled(ScriptFunctionCall& function, bool& hadException) const
{
ASSERT(!isEmpty());
- ExecutionContext* executionContext = m_injectedScriptObject.scriptState()->executionContext();
- TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "FunctionCall", "data", InspectorFunctionCallEvent::data(executionContext, 0, name(), 1));
- TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), "CallStack", TRACE_EVENT_SCOPE_PROCESS, "stack", InspectorCallStackEvent::currentCallStack());
-
ScriptState* scriptState = m_injectedScriptObject.scriptState();
bool evalIsDisabled = false;
if (scriptState) {
@@ -131,7 +126,6 @@ ScriptValue InjectedScriptBase::callFunctionWithEvalEnabled(ScriptFunctionCall&
if (evalIsDisabled)
scriptState->setEvalEnabled(false);
- TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateCounters", TRACE_EVENT_SCOPE_PROCESS, "data", InspectorUpdateCountersEvent::data());
return resultValue;
}
« no previous file with comments | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/engine/v8_inspector/PageScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698