Bug 830668 - Add a keyboard shortcut for the Profiler, r=robcee

This commit is contained in:
Anton Kovalyov 2013-02-07 11:09:55 -08:00
Родитель 87e29c3174
Коммит 391096d41f
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -146,6 +146,10 @@ let styleEditorDefinition = {
let profilerDefinition = {
id: "jsprofiler",
accesskey: l10n("profiler.accesskey", profilerStrings),
key: l10n("profiler.commandkey", profilerStrings),
ordinal: 4,
modifiers: osString == "Darwin" ? "accel,alt" : "accel,shift",
killswitch: "devtools.profiler.enabled",
url: "chrome://browser/content/profiler.xul",
label: l10n("profiler.label", profilerStrings),

Просмотреть файл

@ -15,6 +15,11 @@
# displayed inside the developer tools window and in the Developer Tools Menu.
profiler.label=Profiler
# LOCALIZATION NOTE (profiler.commandkey, profiler.accesskey)
# Used for the menuitem in the tool menu
profiler.commandkey=Y
profiler.accesskey=Y
# LOCALIZATION NOTE (profiler.tooltip):
# This string is displayed in the tooltip of the tab when the profiler is
# displayed inside the developer tools window.
@ -41,6 +46,9 @@ profiler.runningTime=Running Time
# LOCALIZATION NOTE (profiler.self):
# This string is displayed as a table header in the profiler UI.
# "Self" is how much time was spent doing work directly in that function.
# As opposed to the total time which is how much time was spent in that
# function and in functions it called.
profiler.self=Self
# LOCALIZATION NOTE (profiler.symbolName)