Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: chrome/browser/ui/webui/about_ui.cc

Issue 11475016: cros: Add UMA stat for graphics driver memory on tab discard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Log graphics on discard, fix anon mem range Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index bd7b8ff29b11325bd98296273b4a6f5da89901f5..db355939f0ced6f4fef19b8ed356bb705f333100 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -380,6 +380,10 @@ std::string AboutDiscards(const std::string& path) {
"Inactive Anon", base::IntToString(meminfo.inactive_anon / 1024)));
output.append(AddStringRow(
"Shared", base::IntToString(meminfo.shmem / 1024)));
+ if (meminfo.gem_size != -1) {
+ output.append(AddStringRow(
DaveMoore 2012/12/07 18:52:48 Is this automatically added to a total? If so ther
James Cook 2012/12/07 19:41:22 It's not adding to any other totals in the UI. The
+ "Graphics", base::IntToString(meminfo.gem_size / 1024 / 1024)));
+ }
output.append("</table>");
AppendFooter(&output);
« chrome/browser/chromeos/memory/oom_priority_manager.cc ('K') | « chrome/browser/memory_details.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698