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

Unified Diff: webkit/glue/webkit_glue.h

Issue 11829032: Add a histogram for renderer memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar build fixes Created 7 years, 11 months 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
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkit_glue.h
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h
index d5c1991380b8c330ff5a1232c43f6c307ed988c2..d9c48b4d27ed8f49fa5c03199ea52801b6dfa902 100644
--- a/webkit/glue/webkit_glue.h
+++ b/webkit/glue/webkit_glue.h
@@ -114,6 +114,12 @@ WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported(
WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy(
net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy);
+// Returns an estimate of the memory usage of the renderer process. Different
+// platforms implement this function differently, and count in different
+// allocations. Results are not comparable across platforms. The estimate is
+// computed inside the sandbox and thus its not always accurate.
+WEBKIT_GLUE_EXPORT size_t MemoryUsageKB();
+
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698