diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 18:27:21 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 18:27:21 +0000 |
commit | ed1dcd7826316e56bc14faee7c39121bcc9981a5 (patch) | |
tree | 7ef23b9666b9e2fccc275ac6307db726fbd6ac94 /webkit/glue | |
parent | df33e777cfc228e34896c0f961b5af6dea40af5e (diff) | |
download | chromium_src-ed1dcd7826316e56bc14faee7c39121bcc9981a5.zip chromium_src-ed1dcd7826316e56bc14faee7c39121bcc9981a5.tar.gz chromium_src-ed1dcd7826316e56bc14faee7c39121bcc9981a5.tar.bz2 |
Prepare heap profiler for WebKit profiles panel UI-related refactoring
Review URL: http://codereview.chromium.org/303001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/devtools/js/heap_profiler_panel.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js index f55ae13..7c84c37 100644 --- a/webkit/glue/devtools/js/heap_profiler_panel.js +++ b/webkit/glue/devtools/js/heap_profiler_panel.js @@ -744,6 +744,18 @@ WebInspector.HeapSnapshotProfileType.prototype = { buttonClicked: function() { InspectorController.takeHeapSnapshot(); + }, + + sidebarTreeElementForProfile: function(profile) + { + var element = new WebInspector.HeapSnapshotSidebarTreeElement(profile); + element.small = false; + return element; + }, + + createView: function(profile) + { + return new WebInspector.HeapSnapshotView(WebInspector.panels.profiles, profile); } } |