Crashpad
|
Container class to hold shared UMA metrics integration points. More...
#include "util/misc/metrics.h"
Public Types | |
enum | PendingReportReason : int32_t |
Values for CrashReportPending(). More... | |
enum | CrashSkippedReason : int32_t |
Values for CrashUploadSkipped(). More... | |
enum | CaptureResult : int32_t |
The result of capturing an exception. More... | |
enum | LifetimeMilestone : int32_t |
An important event in a handler process’ lifetime. More... | |
Static Public Member Functions | |
static void | CrashReportPending (PendingReportReason reason) |
Reports when a crash upload has entered the pending state. | |
static void | CrashReportSize (FileOffset size) |
Reports the size of a crash report file in bytes. Should be called when a new report is written to disk. | |
static void | CrashUploadAttempted (bool successful) |
Reports on a crash upload attempt, and if it succeeded. | |
static void | CrashUploadSkipped (CrashSkippedReason reason) |
Reports when a report is moved to the completed state in the database, without the report being uploadad. | |
static void | ExceptionCaptureResult (CaptureResult result) |
Reports on the outcome of capturing a report in the exception handler. Should be called on all capture completion paths. | |
static void | ExceptionCode (uint32_t exception_code) |
The exception code for an exception was retrieved. More... | |
static void | ExceptionEncountered () |
The exception handler server started capturing an exception. | |
static void | HandlerLifetimeMilestone (LifetimeMilestone milestone) |
Records a handler start/exit/crash event. | |
static void | HandlerCrashed (uint32_t exception_code) |
The handler process crashed with the given exception code. More... | |
Container class to hold shared UMA metrics integration points.
Each static function in this class will call a UMA_*
from base/metrics/histogram_macros.h
. When building Crashpad standalone, (against mini_chromium), these macros do nothing. When built against Chromium's base, they allow integration with its metrics system.
|
strong |
The result of capturing an exception.
Enumerator | |
---|---|
kSuccess | The exception capture succeeded normally. |
kUnexpectedExceptionBehavior | Unexpected exception behavior. This value is only used on macOS. |
kFailedDueToSuspendSelf | Failed due to attempt to suspend self. This value is only used on macOS. |
kSnapshotFailed | The process snapshot could not be captured. |
kExceptionInitializationFailed | The exception could not be initialized. |
kPrepareNewCrashReportFailed | The attempt to prepare a new crash report in the crash database failed. |
kMinidumpWriteFailed | Writing the minidump to disk failed. |
kFinishedWritingCrashReportFailed | There was a database error in attempt to complete the report. |
kDirectPtraceFailed | An attempt to directly This value is only used on Linux/Android. |
kBrokeredPtraceFailed | An attempt to This value is only used on Linux/Android. |
kSanitizationInitializationFailed | Sanitization was requested but could not be initialized. |
kSkippedDueToSanitization | Sanitization caused this crash dump to be skipped. |
kOpenMemfdFailed | Failure to open a memfd caused this crash dump to be skipped. |
kMaxValue | The number of values in this enumeration; not a valid value. |
|
strong |
Values for CrashUploadSkipped().
|
strong |
An important event in a handler process’ lifetime.
|
strong |
Values for CrashReportPending().
|
static |
The exception code for an exception was retrieved.
These values are OS-specific, and correspond to MINIDUMP_EXCEPTION::ExceptionCode.
|
static |
The handler process crashed with the given exception code.
This is currently only reported on Windows.