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

Unified Diff: base/cpu.cc

Issue 17770005: Include CPU information in UMA system profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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 | « base/cpu.h ('k') | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/cpu.cc
diff --git a/base/cpu.cc b/base/cpu.cc
index 4a94af09bd1ee8aff00a1bb51feb91c727909c8a..1761529e046edf2531d2d4612ca6d78c9b96289a 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;
« no previous file with comments | « base/cpu.h ('k') | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698