mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-03-06 23:59:47 +00:00
Add process type to MicroDumpExtraInfo
BUG=616774 R=primiano@chromium.org, torne@chromium.org Review URL: https://codereview.chromium.org/2087413002 .
This commit is contained in:
parent
0ebdc4a10a
commit
5adeef6117
|
@ -38,9 +38,13 @@ struct MicrodumpExtraInfo {
|
||||||
const char* build_fingerprint;
|
const char* build_fingerprint;
|
||||||
const char* product_info;
|
const char* product_info;
|
||||||
const char* gpu_fingerprint;
|
const char* gpu_fingerprint;
|
||||||
|
const char* process_type;
|
||||||
|
|
||||||
MicrodumpExtraInfo()
|
MicrodumpExtraInfo()
|
||||||
: build_fingerprint(NULL), product_info(NULL), gpu_fingerprint(NULL) {}
|
: build_fingerprint(NULL),
|
||||||
|
product_info(NULL),
|
||||||
|
gpu_fingerprint(NULL),
|
||||||
|
process_type(NULL) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,6 +164,7 @@ class MicrodumpWriter {
|
||||||
LogLine("-----BEGIN BREAKPAD MICRODUMP-----");
|
LogLine("-----BEGIN BREAKPAD MICRODUMP-----");
|
||||||
DumpProductInformation();
|
DumpProductInformation();
|
||||||
DumpOSInformation();
|
DumpOSInformation();
|
||||||
|
DumpProcessType();
|
||||||
DumpGPUInformation();
|
DumpGPUInformation();
|
||||||
#if !defined(__LP64__)
|
#if !defined(__LP64__)
|
||||||
DumpFreeSpace();
|
DumpFreeSpace();
|
||||||
|
@ -233,6 +234,16 @@ class MicrodumpWriter {
|
||||||
LogCommitLine();
|
LogCommitLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DumpProcessType() {
|
||||||
|
LogAppend("P ");
|
||||||
|
if (microdump_extra_info_.process_type) {
|
||||||
|
LogAppend(microdump_extra_info_.process_type);
|
||||||
|
} else {
|
||||||
|
LogAppend("UNKNOWN");
|
||||||
|
}
|
||||||
|
LogCommitLine();
|
||||||
|
}
|
||||||
|
|
||||||
void DumpOSInformation() {
|
void DumpOSInformation() {
|
||||||
const uint8_t n_cpus = static_cast<uint8_t>(sysconf(_SC_NPROCESSORS_CONF));
|
const uint8_t n_cpus = static_cast<uint8_t>(sysconf(_SC_NPROCESSORS_CONF));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue