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

Side by Side Diff: src/google_breakpad/processor/system_info.h

Issue 1678463002: Parse additional microdump GPU line in the format: G GL_VERSION|GL_VENDOR|GL_RENDERER. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Sync Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/processor/microdump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 37
38 #include <string> 38 #include <string>
39 39
40 #include "common/using_std_string.h" 40 #include "common/using_std_string.h"
41 41
42 namespace google_breakpad { 42 namespace google_breakpad {
43 43
44 struct SystemInfo { 44 struct SystemInfo {
45 public: 45 public:
46 SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(), 46 SystemInfo() : os(), os_short(), os_version(), cpu(), cpu_info(),
47 cpu_count(0) {} 47 cpu_count(0), gl_version(), gl_vendor(), gl_renderer() {}
48 48
49 // Resets the SystemInfo object to its default values. 49 // Resets the SystemInfo object to its default values.
50 void Clear() { 50 void Clear() {
51 os.clear(); 51 os.clear();
52 os_short.clear(); 52 os_short.clear();
53 os_version.clear(); 53 os_version.clear();
54 cpu.clear(); 54 cpu.clear();
55 cpu_info.clear(); 55 cpu_info.clear();
56 cpu_count = 0; 56 cpu_count = 0;
57 gl_version.clear();
58 gl_vendor.clear();
59 gl_renderer.clear();
57 } 60 }
58 61
59 // A string identifying the operating system, such as "Windows NT", 62 // A string identifying the operating system, such as "Windows NT",
60 // "Mac OS X", or "Linux". If the information is present in the dump but 63 // "Mac OS X", or "Linux". If the information is present in the dump but
61 // its value is unknown, this field will contain a numeric value. If 64 // its value is unknown, this field will contain a numeric value. If
62 // the information is not present in the dump, this field will be empty. 65 // the information is not present in the dump, this field will be empty.
63 string os; 66 string os;
64 67
65 // A short form of the os string, using lowercase letters and no spaces, 68 // A short form of the os string, using lowercase letters and no spaces,
66 // suitable for use in a filesystem. Possible values include "windows", 69 // suitable for use in a filesystem. Possible values include "windows",
(...skipping 17 matching lines...) Expand all
84 87
85 // A string further identifying the specific CPU, such as 88 // A string further identifying the specific CPU, such as
86 // "GenuineIntel level 6 model 13 stepping 8". If the information is not 89 // "GenuineIntel level 6 model 13 stepping 8". If the information is not
87 // present in the dump, or additional identifying information is not 90 // present in the dump, or additional identifying information is not
88 // defined for the CPU family, this field will be empty. 91 // defined for the CPU family, this field will be empty.
89 string cpu_info; 92 string cpu_info;
90 93
91 // The number of processors in the system. Will be greater than one for 94 // The number of processors in the system. Will be greater than one for
92 // multi-core systems. 95 // multi-core systems.
93 int cpu_count; 96 int cpu_count;
97
98 // The GPU information. Currently only populated in microdumps.
99 string gl_version;
100 string gl_vendor;
101 string gl_renderer;
94 }; 102 };
95 103
96 } // namespace google_breakpad 104 } // namespace google_breakpad
97 105
98 #endif // GOOGLE_BREAKPAD_PROCESSOR_SYSTEM_INFO_H__ 106 #endif // GOOGLE_BREAKPAD_PROCESSOR_SYSTEM_INFO_H__
OLDNEW
« no previous file with comments | « no previous file | src/processor/microdump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698