GNOME Bugzilla – Bug 650692
Add "Memory" tab to lg
Last modified: 2011-06-07 18:49:09 UTC
shell_get_memory_info() is a new function which extracts a few global counters we have already, namely glibc's mallinfo and gjs' counters for object wrappers. There is some slight overlap with perf; ultimately though I'd like this function to do some more extensive analysis, so it wouldn't be quite the same. perf is going to be mainly concerned with how big the whole process over time is; memory_info is for debugging memory leaks.
Created attachment 188241 [details] [review] Add "Memory" tab to lg
Created attachment 188251 [details] [review] Add "Memory" tab to lg Move to ShellGlobal, get JSGC_BYTES
Review of attachment 188251 [details] [review]: Code looks good modulo white space issues: /home/linux/gnome-shell/source/gnome-shell/.git/rebase-apply/patch:34: trailing whitespace. /home/linux/gnome-shell/source/gnome-shell/.git/rebase-apply/patch:109: trailing whitespace. /home/linux/gnome-shell/source/gnome-shell/.git/rebase-apply/patch:111: trailing whitespace. The layout inside the tab could be better IMO (spacing + padding etc.); but the contents of lg is not subject to design so I leave this up to you whether you want to improve it or not. ::: js/ui/lookingGlass.js @@ +601,3 @@ + this.actor.add(this._gjs_function); + this._gjs_closure = new St.Label(); + this.actor.add(this._gjs_closure); I'd add a new line before the new St.Label() lines to make this a bit more readable.
Attachment 188251 [details] pushed as aa03734 - Add "Memory" tab to lg