mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 637393 - Add a -D option to the shell to disassemble all scripts, with per-op per-runmode execution counts, at shutdown
--HG-- extra : rebase_source : da191562758eb5dc64e76be79d55a09153cce391
This commit is contained in:
parent
fa5dea8080
commit
234e978ea9
@ -152,6 +152,7 @@ static volatile bool gCanceled = false;
|
||||
static bool enableTraceJit = false;
|
||||
static bool enableMethodJit = false;
|
||||
static bool enableProfiling = false;
|
||||
static bool enableDisassemblyDumps = false;
|
||||
|
||||
static bool printTiming = false;
|
||||
|
||||
@ -962,6 +963,11 @@ ProcessArgs(JSContext *cx, JSObject *obj, char **argv, int argc)
|
||||
JS_SetDebugMode(cx, JS_TRUE);
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
enableDisassemblyDumps = true;
|
||||
JS_ToggleOptions(cx, JSOPTION_PCCOUNT);
|
||||
break;
|
||||
|
||||
case 'z':
|
||||
obj = split_setup(cx, JS_FALSE);
|
||||
if (!obj)
|
||||
@ -6077,6 +6083,9 @@ Shell(JSContext *cx, int argc, char **argv, char **envp)
|
||||
}
|
||||
#endif /* JSDEBUGGER */
|
||||
|
||||
if (enableDisassemblyDumps)
|
||||
JS_DumpAllProfiles(cx);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user