diff --git a/shell/renderer/api/electron_api_context_bridge.cc b/shell/renderer/api/electron_api_context_bridge.cc index be0b522ce8d7..1c41a1e126b9 100644 --- a/shell/renderer/api/electron_api_context_bridge.cc +++ b/shell/renderer/api/electron_api_context_bridge.cc @@ -149,6 +149,7 @@ v8::MaybeLocal PassValueToOtherContext( context_bridge::ObjectCache* object_cache, bool support_dynamic_properties, int recursion_depth) { + TRACE_EVENT0("electron", "ContextBridge::PassValueToOtherContext"); if (recursion_depth >= kMaxRecursion) { v8::Context::Scope source_scope(source_context); source_context->GetIsolate()->ThrowException(v8::Exception::TypeError( @@ -338,6 +339,7 @@ v8::Local ProxyFunctionWrapper( size_t func_id, bool support_dynamic_properties, gin_helper::Arguments* args) { + TRACE_EVENT0("electron", "ContextBridge::ProxyFunctionWrapper"); // Context the proxy function was called from v8::Local calling_context = args->isolate()->GetCurrentContext(); // Context the function was created in @@ -506,6 +508,7 @@ gin_helper::Dictionary DebugGC(gin_helper::Dictionary empty) { void ExposeAPIInMainWorld(const std::string& key, v8::Local api_object, gin_helper::Arguments* args) { + TRACE_EVENT1("electron", "ContextBridge::ExposeAPIInMainWorld", "key", key); auto* render_frame = GetRenderFrame(api_object); CHECK(render_frame); context_bridge::RenderFrameFunctionStore* store =