diff options
author | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 00:49:42 +0000 |
---|---|---|
committer | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-20 00:49:42 +0000 |
commit | e8c287c870229879a207e15fa565afc439ae9d56 (patch) | |
tree | ea9df1e39bdefba400e496f6f1ccc3420484d206 /chrome/browser/metrics | |
parent | 41959d484cd571ecde36f030f1c455a7ba6a886e (diff) | |
download | chromium_src-e8c287c870229879a207e15fa565afc439ae9d56.zip chromium_src-e8c287c870229879a207e15fa565afc439ae9d56.tar.gz chromium_src-e8c287c870229879a207e15fa565afc439ae9d56.tar.bz2 |
Send the gpu information along with the rest of the metrics.
Note: this won't go green until issue 2857035 goes in.
BUG=38736
TEST=none (suggestions welcome)
Review URL: http://codereview.chromium.org/2895014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics')
-rw-r--r-- | chrome/browser/metrics/metrics_log.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc index abea0af..2f9253e 100644 --- a/chrome/browser/metrics/metrics_log.cc +++ b/chrome/browser/metrics/metrics_log.cc @@ -19,6 +19,7 @@ #include "chrome/app/chrome_version_info.h" #include "chrome/browser/autocomplete/autocomplete.h" #include "chrome/browser/browser_process.h" +#include "chrome/browser/gpu_process_host.h" #include "chrome/browser/pref_service.h" #include "chrome/common/logging_chrome.h" #include "chrome/common/pref_names.h" @@ -295,6 +296,14 @@ void MetricsLog::RecordEnvironment( } { + OPEN_ELEMENT_FOR_SCOPE("gpu"); + WriteIntAttribute("vendorid", + GpuProcessHost::Get()->gpu_info().vendor_id()); + WriteIntAttribute("deviceid", + GpuProcessHost::Get()->gpu_info().device_id()); + } + + { OPEN_ELEMENT_FOR_SCOPE("display"); int width = 0; int height = 0; |