Index: webkit/glue/devtools/js/inspector_controller_impl.js |
diff --git a/webkit/glue/devtools/js/inspector_controller_impl.js b/webkit/glue/devtools/js/inspector_controller_impl.js |
index e327bc31d35e4c4e002915baa480083ad8d7d3e0..6b341b36b9fb075cc2cdac9db4edf5d4462dfb27 100644 |
--- a/webkit/glue/devtools/js/inspector_controller_impl.js |
+++ b/webkit/glue/devtools/js/inspector_controller_impl.js |
@@ -248,6 +248,34 @@ devtools.InspectorControllerImpl.prototype.stopProfiling = function() { |
/** |
* @override |
*/ |
+devtools.InspectorControllerImpl.prototype.getProfileHeaders = function(callId) { |
+ WebInspector.didGetProfileHeaders(callId, []); |
+}; |
+ |
+ |
+/** |
+ * Emulate WebKit InspectorController behavior. It stores profiles on renderer side, |
+ * and is able to retrieve them by uid using 'getProfile'. |
+ */ |
+devtools.InspectorControllerImpl.prototype.addFullProfile = function(profile) { |
+ WebInspector.__fullProfiles = WebInspector.__fullProfiles || {}; |
+ WebInspector.__fullProfiles[profile.uid] = profile; |
+}; |
+ |
+ |
+/** |
+ * @override |
+ */ |
+devtools.InspectorControllerImpl.prototype.getProfile = function(callId, uid) { |
+ if (WebInspector.__fullProfiles && (uid in WebInspector.__fullProfiles)) { |
+ WebInspector.didGetProfile(callId, WebInspector.__fullProfiles[uid]); |
+ } |
+}; |
+ |
+ |
+/** |
+ * @override |
+ */ |
devtools.InspectorControllerImpl.prototype.takeHeapSnapshot = function() { |
devtools.tools.getDebuggerAgent().startProfiling( |
devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_HEAP_SNAPSHOT |