Permalink
Browse files

Issue 5599: Remove memoryProfile CMD API in 1.10

  • Loading branch information...
1 parent 4bcc4bc commit b95e236180bf8fd73b0a5a5c83ae75164095de79 @janodvarko janodvarko committed Jun 26, 2012
View
@@ -146,7 +146,7 @@ function prepareBuild()
"firebug/firefox/external-editors/externalEditors",
"firebug/firefox/firebugMenu",
"firebug/chrome/panelActivation",
- "firebug/console/memoryProfiler",
+ //"firebug/console/memoryProfiler", xxxHonza: removed from 1.10 (issue 5599)
"firebug/chrome/tableRep",
"firebug/html/htmlPanel",
"firebug/console/commandLinePopup",
@@ -62,12 +62,13 @@ Firebug.KnownIssues = Obj.extend(Firebug.Module,
{
// See also issue 4529. Since the memory profiler is still a lab thing,
// hide the "Memory Profiler" button begin a pref.
- if (!Options.get("memoryProfilerEnable"))
+ // xxxHonza: removed from 1.10 (issue 5599)
+ /*if (!Options.get("memoryProfilerEnable"))
{
var button = doc.getElementById("fbToggleMemoryProfiling");
if (button)
Dom.collapse(button, true);
- }
+ }*/
}
});
@@ -1184,7 +1184,8 @@ function FirebugCommandLineAPI(context)
return Firebug.Console.getDefaultReturnValue(context.window);
};
- this.memoryProfile = function(title)
+ // xxxHonza: removed from 1.10 (issue 5599)
+ /*this.memoryProfile = function(title)
{
Firebug.MemoryProfiler.start(context, title);
return Firebug.Console.getDefaultReturnValue(context.window);
@@ -1194,7 +1195,7 @@ function FirebugCommandLineAPI(context)
{
Firebug.MemoryProfiler.stop(context);
return Firebug.Console.getDefaultReturnValue(context.window);
- };
+ };*/
}
// ********************************************************************************************* //
@@ -40,7 +40,7 @@ function createFirebugCommandLine(context, win)
var commands = ["$", "$$", "$x", "$n", "cd", "clear", "inspect", "keys",
"values", "debug", "undebug", "monitor", "unmonitor", "traceCalls", "untraceCalls",
"traceAll", "untraceAll", "monitorEvents", "unmonitorEvents", "profile", "profileEnd",
- "copy", "memoryProfile", "memoryProfileEnd"];
+ "copy" /*, "memoryProfile", "memoryProfileEnd"*/];
// Define command line methods
for (var i=0; i<commands.length; i++)
@@ -249,7 +249,8 @@ function createFirebugConsole(context, win)
}
};
- console.memoryProfile = function(title)
+ // xxxHonza: removed from 1.10 (issue 5599)
+ /*console.memoryProfile = function(title)
{
Firebug.MemoryProfiler.start(context, title);
return Console.getDefaultReturnValue(win);
@@ -259,7 +260,7 @@ function createFirebugConsole(context, win)
{
Firebug.MemoryProfiler.stop(context);
return Console.getDefaultReturnValue(win);
- };
+ };*/
// Expose only these properties to the content scope (read only).
console.__exposedProps__.log = "r";
@@ -283,8 +284,8 @@ function createFirebugConsole(context, win)
console.__exposedProps__.clear = "r";
console.__exposedProps__.table = "r";
console.__exposedProps__.error = "r";
- console.__exposedProps__.memoryProfile = "r";
- console.__exposedProps__.memoryProfileEnd = "r";
+ //console.__exposedProps__.memoryProfile = "r";
+ //console.__exposedProps__.memoryProfileEnd = "r";
// DBG console.uid = Math.random();
@@ -19,7 +19,7 @@
<command id="cmd_toggleQuickInfoBox" oncommand="Firebug.Inspector.toggleQuickInfoBox()"
checked="false"/>
<command id="cmd_toggleProfiling" oncommand="Firebug.Profiler.toggleProfiling(Firebug.currentContext)"/>
- <command id="cmd_toggleMemoryProfiling" oncommand="Firebug.MemoryProfiler.toggleProfiling(Firebug.currentContext)"/>
+ <!-- <command id="cmd_toggleMemoryProfiling" oncommand="Firebug.MemoryProfiler.toggleProfiling(Firebug.currentContext)"/> -->
<command id="cmd_toggleHTMLEditing" oncommand="Firebug.currentContext.getPanel('html').toggleEditing()"/>
<command id="cmd_togglecssEditMode" oncommand="Firebug.currentContext.getPanel('stylesheet').toggleEditing()"/>
@@ -45,7 +45,7 @@ Firebug.getModuleLoaderConfig = function(baseConfig)
"firebug/firefox/external-editors/externalEditors",
"firebug/firefox/firebugMenu",
"firebug/chrome/panelActivation",
- "firebug/console/memoryProfiler",
+ //"firebug/console/memoryProfiler", xxxHonza: removed from 1.10 (issue 5599)
"firebug/chrome/tableRep",
"firebug/html/htmlPanel",
"firebug/console/commandLinePopup",
@@ -56,7 +56,6 @@ pref("extensions.firebug.console.logLimit", 500);
pref("extensions.firebug.console.enableSites", false);
pref("extensions.firebug.tabularLogMaxHeight", 200);
pref("extensions.firebug.consoleFilterTypes", "all");
-pref("extensions.firebug.memoryProfilerEnable", false);
pref("extensions.firebug.preferJSDSourceLinks", false);
// HTML

0 comments on commit b95e236

Please sign in to comment.