summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webpreferences.h
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 08:27:40 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 08:27:40 +0000
commitf4d7feacd341fcdf796882be07a486ae62ccdd84 (patch)
tree24d0c8e906aa720c855691f9c283ebb453f5271f /webkit/glue/webpreferences.h
parent46f89e149da3971fcf52b778de939256fae4249a (diff)
downloadchromium_src-f4d7feacd341fcdf796882be07a486ae62ccdd84.zip
chromium_src-f4d7feacd341fcdf796882be07a486ae62ccdd84.tar.gz
chromium_src-f4d7feacd341fcdf796882be07a486ae62ccdd84.tar.bz2
Introduce "--enable-memory-info" command-line flag to enable reporting
of JS heap size via "console.memory" (for now) and "webkitPerformance.memory" (having Web Timing enabled). BUG=43281 TEST=none Review URL: http://codereview.chromium.org/3017007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webpreferences.h')
-rw-r--r--webkit/glue/webpreferences.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h
index b86a051..3e4f926 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -65,6 +65,7 @@ struct WebPreferences {
bool show_composited_layer_borders;
bool accelerated_compositing_enabled;
bool enable_html5_parser;
+ bool memory_info_enabled;
// We try to keep the default values the same as the default values in
// chrome, except for the cases where it would require lots of extra work for
@@ -109,7 +110,8 @@ struct WebPreferences {
experimental_webgl_enabled(false),
show_composited_layer_borders(false),
accelerated_compositing_enabled(false),
- enable_html5_parser(true) {
+ enable_html5_parser(true),
+ memory_info_enabled(false) {
}
void Apply(WebKit::WebView* web_view) const;