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

Unified Diff: base/cpu.h

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 | « no previous file | base/cpu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/cpu.h
diff --git a/base/cpu.h b/base/cpu.h
index 1d45258e06ebcc986d51cd54cba9db7e6d480414..509763e170f4c666089f65db1b5b81097de452a9 100644
--- a/base/cpu.h
+++ b/base/cpu.h
@@ -31,6 +31,7 @@ class BASE_EXPORT CPU {
// Accessors for CPU information.
const std::string& vendor_name() const { return cpu_vendor_; }
+ int signature() const { return signature_; }
int stepping() const { return stepping_; }
int model() const { return model_; }
int family() const { return family_; }
@@ -55,6 +56,7 @@ class BASE_EXPORT CPU {
// Query the processor for CPUID information.
void Initialize();
+ int signature_; // raw form of type, family, model, and stepping
int type_; // process type
int family_; // family of the processor
int model_; // model of processor
« no previous file with comments | « no previous file | base/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698