From aa31e4bd8a96658a7eb0e9e5e43db16c9c95dfae Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 21 Jan 2013 11:38:49 -0500 Subject: [PATCH] LP#1102472: add about:memory to staff client developer menu Signed-off-by: Galen Charlton --- Open-ILS/web/opac/locale/en-US/lang.dtd | 1 + Open-ILS/xul/staff_client/chrome/content/main/menu.js | 6 ++++++ Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul | 4 ++++ docs/RELEASE_NOTES_NEXT/about_memory.txt | 5 +++++ 4 files changed, 16 insertions(+) create mode 100644 docs/RELEASE_NOTES_NEXT/about_memory.txt diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 70063d8ae5..7a176e16e0 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -906,6 +906,7 @@ + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index f94e9ed435..d8b8ee0651 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -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() { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index 2e984d7102..b3cc049c21 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -76,6 +76,9 @@ + + diff --git a/docs/RELEASE_NOTES_NEXT/about_memory.txt b/docs/RELEASE_NOTES_NEXT/about_memory.txt new file mode 100644 index 0000000000..b5bce675c8 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/about_memory.txt @@ -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. -- 2.11.0