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

Unified Diff: client/linux/microdump_writer/microdump_writer.cc

Issue 2087413002: Add process type to MicroDumpExtraInfo (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad/src.git@master
Patch Set: rebase Created 4 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 | « client/linux/handler/microdump_extra_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/linux/microdump_writer/microdump_writer.cc
diff --git a/client/linux/microdump_writer/microdump_writer.cc b/client/linux/microdump_writer/microdump_writer.cc
index 26f7250f490c09f533f242d92ce28616274dd312..6f5b435591bd84a10e1ef3b51c2058005d9e5e75 100644
--- a/client/linux/microdump_writer/microdump_writer.cc
+++ b/client/linux/microdump_writer/microdump_writer.cc
@@ -164,6 +164,7 @@ class MicrodumpWriter {
LogLine("-----BEGIN BREAKPAD MICRODUMP-----");
DumpProductInformation();
DumpOSInformation();
+ DumpProcessType();
DumpGPUInformation();
#if !defined(__LP64__)
DumpFreeSpace();
@@ -233,6 +234,16 @@ class MicrodumpWriter {
LogCommitLine();
}
+ void DumpProcessType() {
+ LogAppend("P ");
+ if (microdump_extra_info_.process_type) {
+ LogAppend(microdump_extra_info_.process_type);
+ } else {
+ LogAppend("UNKNOWN");
+ }
+ LogCommitLine();
+ }
+
void DumpOSInformation() {
const uint8_t n_cpus = static_cast<uint8_t>(sysconf(_SC_NPROCESSORS_CONF));
« no previous file with comments | « client/linux/handler/microdump_extra_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698