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

Unified Diff: src/processor/stackwalk_common.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/processor/microdump_processor_unittest.cc ('k') | src/processor/testdata/microdump-arm.dmp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/processor/stackwalk_common.cc
diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc
index 20734fe06eb4b9475c925a6877254104a2a4e1e9..58ba6bda4068e2608854f89fce47a3c4c41a119b 100644
--- a/src/processor/stackwalk_common.cc
+++ b/src/processor/stackwalk_common.cc
@@ -803,6 +803,20 @@ void PrintProcessState(const ProcessState& process_state,
process_state.system_info()->cpu_count != 1 ? "s" : "");
printf("\n");
+ // Print GPU information
+ string gl_version = process_state.system_info()->gl_version;
+ string gl_vendor = process_state.system_info()->gl_vendor;
+ string gl_renderer = process_state.system_info()->gl_renderer;
+ printf("GPU:");
+ if (!gl_version.empty() || !gl_vendor.empty() || !gl_renderer.empty()) {
+ printf(" %s\n", gl_version.c_str());
+ printf(" %s\n", gl_vendor.c_str());
+ printf(" %s\n", gl_renderer.c_str());
+ } else {
+ printf(" UNKNOWN\n");
+ }
+ printf("\n");
+
// Print crash information.
if (process_state.crashed()) {
printf("Crash reason: %s\n", process_state.crash_reason().c_str());
@@ -865,6 +879,7 @@ void PrintProcessStateMachineReadable(const ProcessState& process_state) {
// Print OS and CPU information.
// OS|{OS Name}|{OS Version}
// CPU|{CPU Name}|{CPU Info}|{Number of CPUs}
+ // GPU|{GPU version}|{GPU vendor}|{GPU renderer}
printf("OS%c%s%c%s\n", kOutputSeparator,
StripSeparator(process_state.system_info()->os).c_str(),
kOutputSeparator,
@@ -876,6 +891,12 @@ void PrintProcessStateMachineReadable(const ProcessState& process_state) {
StripSeparator(process_state.system_info()->cpu_info).c_str(),
kOutputSeparator,
process_state.system_info()->cpu_count);
+ printf("GPU%c%s%c%s%c%s\n", kOutputSeparator,
+ StripSeparator(process_state.system_info()->gl_version).c_str(),
+ kOutputSeparator,
+ StripSeparator(process_state.system_info()->gl_vendor).c_str(),
+ kOutputSeparator,
+ StripSeparator(process_state.system_info()->gl_renderer).c_str());
int requesting_thread = process_state.requesting_thread();
« no previous file with comments | « src/processor/microdump_processor_unittest.cc ('k') | src/processor/testdata/microdump-arm.dmp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698