diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-05-30 12:14:09 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-05-30 12:14:09 +0000 |
commit | 90e050e5982a5cddc3d544d103eccc06be42f184 (patch) | |
tree | 86e0df90d05449470ce48c0389940f6d7bb8eb6a /src/google_breakpad/processor | |
parent | Issue 184 - MinidumpModule::code_identifier doesn't handle MD_OS_LINUX. r=mento (diff) | |
download | breakpad-90e050e5982a5cddc3d544d103eccc06be42f184.tar.xz |
Issue 143 - MinidumpProcessor should extract number of processors. r=mento
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@180 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r-- | src/google_breakpad/processor/system_info.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/google_breakpad/processor/system_info.h b/src/google_breakpad/processor/system_info.h index 49776b75..fdbdbfd6 100644 --- a/src/google_breakpad/processor/system_info.h +++ b/src/google_breakpad/processor/system_info.h @@ -43,6 +43,9 @@ using std::string; struct SystemInfo { public: + SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(), + cpu_count(0) {} + // Resets the SystemInfo object to its default values. void Clear() { os.clear(); @@ -50,6 +53,7 @@ struct SystemInfo { os_version.clear(); cpu.clear(); cpu_info.clear(); + cpu_count = 0; } // A string identifying the operating system, such as "Windows NT", @@ -82,6 +86,10 @@ struct SystemInfo { // present in the dump, or additional identifying information is not // defined for the CPU family, this field will be empty. string cpu_info; + + // The number of processors in the system. Will be greater than one for + // multi-core systems. + int cpu_count; }; } // namespace google_breakpad |