Commit a07b245e authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[heap-profiler] Annotate global handle

Annotate global handle with label to identify the context held alive for
debugging in DevTools

Bug: chromium:811842
Change-Id: I24f08b4d01939421ba1b7ec7b03982f00ebbdd1a
Reviewed-on: https://chromium-review.googlesource.com/962788Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51936}
parent 7b88f356
...@@ -376,6 +376,9 @@ bool Debug::Load() { ...@@ -376,6 +376,9 @@ bool Debug::Load() {
if (context.is_null()) return false; if (context.is_null()) return false;
debug_context_ = isolate_->global_handles()->Create(*context); debug_context_ = isolate_->global_handles()->Create(*context);
GlobalHandles::AnnotateStrongRetainer(
Handle<Object>::cast(debug_context_).location(),
"v8::internal::Debug::debug_context_");
feature_tracker()->Track(DebugFeatureTracker::kActive); feature_tracker()->Track(DebugFeatureTracker::kActive);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment