diff options
author | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-18 11:13:28 +0000 |
---|---|---|
committer | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-18 11:13:28 +0000 |
commit | 5c8f89f69d54d7bafdf1910d620459e0a788c781 (patch) | |
tree | d64b6de4563d268f2dc7ebe374243eae417f379c /base/cpu.cc | |
parent | 31d4df856f3bd49eab7799becf1dec8a91855353 (diff) | |
download | chromium_src-5c8f89f69d54d7bafdf1910d620459e0a788c781.zip chromium_src-5c8f89f69d54d7bafdf1910d620459e0a788c781.tar.gz chromium_src-5c8f89f69d54d7bafdf1910d620459e0a788c781.tar.bz2 |
Include CPU information in UMA system profile.
This is particularly useful to help determine which CPUs fail to tick
monotonically in HighResNow() on Windows.
BUG=254211
Review URL: https://chromiumcodereview.appspot.com/17770005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/cpu.cc')
-rw-r--r-- | base/cpu.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/cpu.cc b/base/cpu.cc index 4a94af0..1761529 100644 --- a/base/cpu.cc +++ b/base/cpu.cc @@ -19,7 +19,8 @@ namespace base { CPU::CPU() - : type_(0), + : signature_(0), + type_(0), family_(0), model_(0), stepping_(0), @@ -105,6 +106,7 @@ void CPU::Initialize() { // Interpret CPU feature information. if (num_ids > 0) { __cpuid(cpu_info, 1); + signature_ = cpu_info[0]; stepping_ = cpu_info[0] & 0xf; model_ = ((cpu_info[0] >> 4) & 0xf) + ((cpu_info[0] >> 12) & 0xf0); family_ = (cpu_info[0] >> 8) & 0xf; |