| Index: Source/devtools/front_end/profiler/ProfilesPanel.js
|
| diff --git a/Source/devtools/front_end/profiler/ProfilesPanel.js b/Source/devtools/front_end/profiler/ProfilesPanel.js
|
| index ccf5e9895f60e8dd0310bc215ea66bffea65415a..fcb64763d8dd69ca4b19764d5504b77cc59a4231 100644
|
| --- a/Source/devtools/front_end/profiler/ProfilesPanel.js
|
| +++ b/Source/devtools/front_end/profiler/ProfilesPanel.js
|
| @@ -304,7 +304,7 @@ WebInspector.ProfileType.DataDisplayDelegate.prototype = {
|
| */
|
| WebInspector.ProfileHeader = function(target, profileType, title)
|
| {
|
| - this._targetObserver = new WebInspector.TargetObserver(target);
|
| + this._weakTarget = target ? target.weakReference() : new WeakReference(null);
|
| this._profileType = profileType;
|
| this.title = title;
|
| this.uid = profileType._nextProfileUid++;
|
| @@ -335,7 +335,15 @@ WebInspector.ProfileHeader.prototype = {
|
| */
|
| target: function()
|
| {
|
| - return this._targetObserver.target();
|
| + return this._weakTarget.get();
|
| + },
|
| +
|
| + /**
|
| + * @return {!WeakReference.<!WebInspector.Target>}
|
| + */
|
| + weakTarget: function()
|
| + {
|
| + return this._weakTarget;
|
| },
|
|
|
| /**
|
|
|