mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-05 22:18:21 +01: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
2 changed files with 16 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue