[Tracing] Remove TRACE_EVENT_SCOPED_CONTEXT from V8 temporarily
The current trace scoping failed to accomplish what it intended to do it failed in 2 aspects: First, when new trace events were added in https://codereview.chromium.org/1770353002/ they escaped the scopes. Secondly, a webgl code interacts with the V8 Objects directly using the EXECUTION_PRIMITIVE context that does not generate any TRACE_EVENTs resulting in a lot of empty scopes (breaking analysis on TBM webgl benchmarks) https://crbug.com/590761. I am removing the calls for now until figuring out a better approach for both issues. BUG=590761,v8:4565 LOG=N Review URL: https://codereview.chromium.org/1807433002 Cr-Commit-Position: refs/heads/master@{#34799}
This commit is contained in:
parent
96a2bd8ae8
commit
7a7d5815db
@ -81,7 +81,6 @@ namespace v8 {
|
||||
if (IsExecutionTerminatingCheck(isolate)) { \
|
||||
return bailout_value; \
|
||||
} \
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate); \
|
||||
HandleScopeClass handle_scope(isolate); \
|
||||
CallDepthScope call_depth_scope(isolate, context, do_callback); \
|
||||
LOG_API(isolate, function_name); \
|
||||
@ -214,7 +213,6 @@ class CallDepthScope {
|
||||
|
||||
static ScriptOrigin GetScriptOriginForScript(i::Isolate* isolate,
|
||||
i::Handle<i::Script> script) {
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
i::Handle<i::Object> scriptName(i::Script::GetNameOrSourceURL(script));
|
||||
i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate);
|
||||
v8::Isolate* v8_isolate =
|
||||
@ -393,7 +391,6 @@ StartupData V8::CreateSnapshotDataBlob(const char* custom_source) {
|
||||
ArrayBufferAllocator allocator;
|
||||
internal_isolate->set_array_buffer_allocator(&allocator);
|
||||
Isolate* isolate = reinterpret_cast<Isolate*>(internal_isolate);
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
StartupData result = {NULL, 0};
|
||||
{
|
||||
base::ElapsedTimer timer;
|
||||
@ -1854,7 +1851,6 @@ MaybeLocal<Script> ScriptCompiler::CompileModule(Local<Context> context,
|
||||
Source* source,
|
||||
CompileOptions options) {
|
||||
auto isolate = context->GetIsolate();
|
||||
TRACE_EVENT_SCOPED_CONTEXT("V8", "Isolate", isolate);
|
||||
auto maybe = CompileUnboundInternal(isolate, source, options, true);
|
||||
Local<UnboundScript> generic;
|
||||
if (!maybe.ToLocal(&generic)) return MaybeLocal<Script>();
|
||||
@ -2281,7 +2277,6 @@ void v8::TryCatch::SetCaptureMessage(bool value) {
|
||||
|
||||
Local<String> Message::Get() const {
|
||||
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
ENTER_V8(isolate);
|
||||
EscapableHandleScope scope(reinterpret_cast<Isolate*>(isolate));
|
||||
i::Handle<i::Object> obj = Utils::OpenHandle(this);
|
||||
@ -2308,7 +2303,6 @@ v8::Local<Value> Message::GetScriptResourceName() const {
|
||||
|
||||
v8::Local<v8::StackTrace> Message::GetStackTrace() const {
|
||||
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
ENTER_V8(isolate);
|
||||
EscapableHandleScope scope(reinterpret_cast<Isolate*>(isolate));
|
||||
auto message = i::Handle<i::JSMessageObject>::cast(Utils::OpenHandle(this));
|
||||
@ -5538,7 +5532,6 @@ Local<Context> v8::Context::New(v8::Isolate* external_isolate,
|
||||
v8::Local<ObjectTemplate> global_template,
|
||||
v8::Local<Value> global_object) {
|
||||
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(external_isolate);
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
LOG_API(isolate, "Context::New");
|
||||
i::HandleScope scope(isolate);
|
||||
ExtensionConfiguration no_extensions;
|
||||
@ -7177,7 +7170,6 @@ Isolate* Isolate::GetCurrent() {
|
||||
Isolate* Isolate::New(const Isolate::CreateParams& params) {
|
||||
i::Isolate* isolate = new i::Isolate(false);
|
||||
Isolate* v8_isolate = reinterpret_cast<Isolate*>(isolate);
|
||||
TRACE_EVENT_SCOPED_CONTEXT("v8", "Isolate", isolate);
|
||||
CHECK(params.array_buffer_allocator != NULL);
|
||||
isolate->set_array_buffer_allocator(params.array_buffer_allocator);
|
||||
if (params.snapshot_blob != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user