LP#1102472: add about:memory to staff client developer menu user/gmcharlt/1102472_about_memory
authorGalen Charlton <gmc@esilibrary.com>
Mon, 21 Jan 2013 16:38:49 +0000 (11:38 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 21 Jan 2013 16:38:49 +0000 (11:38 -0500)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
docs/RELEASE_NOTES_NEXT/about_memory.txt [new file with mode: 0644]

index 70063d8..7a176e1 100644 (file)
 <!ENTITY staff.main.menu.admin.extension_manager.label "Extension Manager">
 <!ENTITY staff.main.menu.admin.theme_manager.label "Theme Manager">
 <!ENTITY staff.main.menu.admin.about_config.label "about:config">
+<!ENTITY staff.main.menu.admin.about_memory.label "about:memory">
 <!ENTITY staff.main.menu.admin.stat_cat_edit.accesskey "C">
 <!ENTITY staff.main.menu.admin.stat_cat_edit.label "Statistical Category Editor">
 <!ENTITY staff.main.menu.admin.survey_wizard.accesskey "S">
index f94e9ed..d8b8ee0 100644 (file)
@@ -1492,6 +1492,12 @@ main.menu.prototype = {
                     obj.command_tab(event,'chrome://global/content/config.xul',{'tab_name' : 'about:config'},{});
                 }
             ],
+            'cmd_about_memory' : [
+                ['oncommand'],
+                function(event) {
+                    obj.command_tab(event,'chrome://global/content/aboutMemory.xhtml',{'tab_name' : 'about:memory'},{});
+                }
+            ],
             'cmd_shutdown' : [
                 ['oncommand'],
                 function() {
index 2e984d7..b3cc049 100644 (file)
@@ -76,6 +76,9 @@
     <command id="cmd_about_config"
              perm="DEBUG_CLIENT"
              />
+    <command id="cmd_about_memory"
+             perm="DEBUG_CLIENT"
+             />
 
     <command id="cmd_adv_user_edit" />
     <command id="cmd_console"
                 <menuitem label="&staff.main.menu.admin.extension_manager.label;" command="cmd_extension_manager"/>
                 <menuitem label="&staff.main.menu.admin.theme_manager.label;" command="cmd_theme_manager"/>
                 <menuitem label="&staff.main.menu.admin.about_config.label;" command="cmd_about_config"/>
+                <menuitem label="&staff.main.menu.admin.about_memory.label;" command="cmd_about_memory"/>
                 <menuitem label="&staff.main.menu.admin.venkman.label;" command="cmd_debug_venkman"/>
                 <menuitem label="&staff.main.auth.debug.inspector;" command="cmd_debug_inspector"/>
                 <menuitem label="&staff.main.auth.debug.chrome_list;" command="cmd_debug_chrome_list"/>
diff --git a/docs/RELEASE_NOTES_NEXT/about_memory.txt b/docs/RELEASE_NOTES_NEXT/about_memory.txt
new file mode 100644 (file)
index 0000000..b5bce67
--- /dev/null
@@ -0,0 +1,5 @@
+New feature: add "about:memory" to developer menu in staff client
+=================================================================
+about:memory is a tool built into XULRunner that provides information
+about the memory usage of the staff client, and can be useful in
+tracking memory leaks.