From 32a969579cdf2606b2ff07e8efca5ca9e963da5d Mon Sep 17 00:00:00 2001 From: Anton Kovalyov Date: Thu, 20 Jun 2013 10:48:25 -0700 Subject: [PATCH] Bug 863653 - Add hints to profiler [start|stop|show] commands; r=jwalker --- browser/devtools/profiler/cmd-profiler.jsm | 9 ++++++--- .../browser/devtools/gclicommands.properties | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/browser/devtools/profiler/cmd-profiler.jsm b/browser/devtools/profiler/cmd-profiler.jsm index b8454febb4d6..e146626c502b 100644 --- a/browser/devtools/profiler/cmd-profiler.jsm +++ b/browser/devtools/profiler/cmd-profiler.jsm @@ -68,7 +68,8 @@ gcli.addCommand({ params: [ { name: "name", - type: "string" + type: "string", + manual: gcli.lookup("profilerStartManual") } ], @@ -114,7 +115,8 @@ gcli.addCommand({ params: [ { name: "name", - type: "string" + type: "string", + manual: gcli.lookup("profilerStopManual") } ], @@ -196,7 +198,8 @@ gcli.addCommand({ params: [ { name: "name", - type: "string" + type: "string", + manual: gcli.lookup("profilerShowManual") } ], diff --git a/browser/locales/en-US/chrome/browser/devtools/gclicommands.properties b/browser/locales/en-US/chrome/browser/devtools/gclicommands.properties index 6ff50cf24552..a912170ef1b2 100644 --- a/browser/locales/en-US/chrome/browser/devtools/gclicommands.properties +++ b/browser/locales/en-US/chrome/browser/devtools/gclicommands.properties @@ -1209,10 +1209,19 @@ profilerCloseDesc=Close the profiler # of the profiler start command. profilerStartDesc=Start profiling +# LOCALIZATION NOTE (profilerStartManual) A fuller description of the 'profile name' +# parameter. This parameter is used to name a newly created profile or to lookup +# an existing profile by its name. +profilerStartManual=Name of a profile you wish to start. + # LOCALIZATION NOTE (profilerStop) A very short string used to describe the function # of the profiler stop command. profilerStopDesc=Stop profiling +# LOCALIZATION NOTE (profilerStopManual) A fuller description of the 'profile name' +# parameter. This parameter is used to lookup an existing profile by its name. +profilerStopManual=Name of a profile you wish to stop. + # LOCALIZATION NOTE (profilerList) A very short string used to describe the function # of the profiler list command. profilerListDesc=List all profiles @@ -1221,6 +1230,11 @@ profilerListDesc=List all profiles # of the profiler show command. profilerShowDesc=Show individual profile +# LOCALIZATION NOTE (profilerShowManual) A fuller description of the 'profile name' +# parameter. This parameter is used to name a newly created profile or to lookup +# an existing profile by its name. +profilerShowManual=Name of a profile. + # LOCALIZATION NOTE (profilerAlreadyStarted) A message that is displayed whenever # an operation cannot be completed because the profile in question has already # been started.