class CrashReport
Defined at line 1332 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
Represents a crash report.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
CrashReport & set_program_name (::std::string _value)
CrashReport & set_specific_report (::fuchsia::feedback::SpecificCrashReport _value)
CrashReport & set_annotations (::std::vector< ::fuchsia::feedback::Annotation> _value)
CrashReport & set_attachments (::std::vector< ::fuchsia::feedback::Attachment> _value)
CrashReport & set_event_id (::std::string _value)
CrashReport & set_program_uptime (int64_t _value)
CrashReport & set_crash_signature (::std::string _value)
CrashReport & set_is_fatal (bool _value)
CrashReport & set_weight (uint32_t _value)
void CrashReport ()
void CrashReport (CrashReport && other)
void ~CrashReport ()
CrashReport & operator= (CrashReport && other)
::std::unique_ptr<CrashReport> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,CrashReport *_value,size_t_offset)
zx_status_t Clone (CrashReport * _result)
const ::std::string & program_name ()
The name of the program that crashed, e.g., the process or component's name.
Defined at line 1339 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_program_name ()
Defined at line 1343 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::std::string * mutable_program_name ()
The name of the program that crashed, e.g., the process or component's name.
Defined at line 1348 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_program_name ()
Defined at line 1356 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::fuchsia::feedback::SpecificCrashReport & specific_report ()
The specific report that depends on the type of crashes.
This field should be set if additional information about the crashing program needs to be
sent, e.g., a minidump.
Defined at line 1368 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_specific_report ()
Defined at line 1372 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::fuchsia::feedback::SpecificCrashReport * mutable_specific_report ()
The specific report that depends on the type of crashes.
This field should be set if additional information about the crashing program needs to be
sent, e.g., a minidump.
Defined at line 1380 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_specific_report ()
Defined at line 1388 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::std::vector< ::fuchsia::feedback::Annotation> & annotations ()
A vector of key-value string pairs representing arbitrary data that should be attached to a
crash report.
Keys should be unique as only the latest value for a given key in the vector will be
considered.
Defined at line 1401 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_annotations ()
Defined at line 1405 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::std::vector< ::fuchsia::feedback::Annotation> * mutable_annotations ()
A vector of key-value string pairs representing arbitrary data that should be attached to a
crash report.
Keys should be unique as only the latest value for a given key in the vector will be
considered.
Defined at line 1414 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_annotations ()
Defined at line 1422 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::std::vector< ::fuchsia::feedback::Attachment> & attachments ()
A vector of key-value string-to-VMO pairs representing arbitrary data that should be
attached to a crash report.
Keys should be unique as only the latest value for a given key in the vector will be
considered.
Defined at line 1435 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_attachments ()
Defined at line 1439 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::std::vector< ::fuchsia::feedback::Attachment> * mutable_attachments ()
A vector of key-value string-to-VMO pairs representing arbitrary data that should be
attached to a crash report.
Keys should be unique as only the latest value for a given key in the vector will be
considered.
Defined at line 1448 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_attachments ()
Defined at line 1456 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::std::string & event_id ()
A text ID that the crash server can use to group multiple crash reports related to the
same event.
Unlike the crash signature, crash reports sharing the same ID correspond to different
crashes, but can be considered as belonging to the same event, e.g., a crash in a low-level
server causing a crash in a high-level UI widget.
Defined at line 1470 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_event_id ()
Defined at line 1474 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::std::string * mutable_event_id ()
A text ID that the crash server can use to group multiple crash reports related to the
same event.
Unlike the crash signature, crash reports sharing the same ID correspond to different
crashes, but can be considered as belonging to the same event, e.g., a crash in a low-level
server causing a crash in a high-level UI widget.
Defined at line 1484 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_event_id ()
Defined at line 1492 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const int64_t & program_uptime ()
How long the program was running before it crashed.
Defined at line 1501 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_program_uptime ()
Defined at line 1505 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
int64_t * mutable_program_uptime ()
How long the program was running before it crashed.
Defined at line 1510 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_program_uptime ()
Defined at line 1518 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::std::string & crash_signature ()
A text signature that the crash server can use to track the same crash over time, e.g.,
"kernel-panic" or "oom". This signature will take precedence over any automated signature
derived from the rest of the data.
Unlike the event ID, crash reports sharing the same signature correspond to the same crash,
but happening over multiple events, e.g., a null pointer exception in a server whenever
asked the same request.
Must match [a-z][a-z
\
-]* i.e. only lowercase letters and hyphens or this will result in a
ZX_ERR_INVALID_ARGS epitaph.
Defined at line 1536 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_crash_signature ()
Defined at line 1540 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::std::string * mutable_crash_signature ()
A text signature that the crash server can use to track the same crash over time, e.g.,
"kernel-panic" or "oom". This signature will take precedence over any automated signature
derived from the rest of the data.
Unlike the event ID, crash reports sharing the same signature correspond to the same crash,
but happening over multiple events, e.g., a null pointer exception in a server whenever
asked the same request.
Must match [a-z][a-z
\
-]* i.e. only lowercase letters and hyphens or this will result in a
ZX_ERR_INVALID_ARGS epitaph.
Defined at line 1554 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_crash_signature ()
Defined at line 1562 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const bool & is_fatal ()
Indicates whether the crash report is for the atypical stop of a running process, component,
or the system itself.
Examples of events that result in fatal crash reports are:
* an ELF process crashing
* the system rebooting because it ran out of memory.
* the system rebooting because a critical component crashed.
* the system rebooting because the device was too hot.
Examples of events that result in non-fatal crash reports are:
* an uncaught exception in a Dart program with many execution contexts. The runtime may
chose to terminate that specific execution context and file a crash report for it instead
of the whole program.
* a component detecting a fatal event (like an OOM) may occur soon, but isn't guaranteed to
occur.
This field is primarily used for grouping crashes by fatal, not fatal, and unknown,
each corresponding to the field being set to true, set to false, or not set respectively.
Defined at line 1588 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_is_fatal ()
Defined at line 1592 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool * mutable_is_fatal ()
Indicates whether the crash report is for the atypical stop of a running process, component,
or the system itself.
Examples of events that result in fatal crash reports are:
* an ELF process crashing
* the system rebooting because it ran out of memory.
* the system rebooting because a critical component crashed.
* the system rebooting because the device was too hot.
Examples of events that result in non-fatal crash reports are:
* an uncaught exception in a Dart program with many execution contexts. The runtime may
chose to terminate that specific execution context and file a crash report for it instead
of the whole program.
* a component detecting a fatal event (like an OOM) may occur soon, but isn't guaranteed to
occur.
This field is primarily used for grouping crashes by fatal, not fatal, and unknown,
each corresponding to the field being set to true, set to false, or not set respectively.
Defined at line 1614 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_is_fatal ()
Defined at line 1622 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const uint32_t & weight ()
Optional. Used to indicate that this report represents more than just this instance of the
crash. For example, this field should be set to 10 if choosing to only file 1 out of every
10 instances of this crash type.
A weight of 1 is used if the field is not set. An explicitly set value of 0 is invalid and
will be rejected.
Defined at line 1636 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_weight ()
Defined at line 1640 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
uint32_t * mutable_weight ()
Optional. Used to indicate that this report represents more than just this instance of the
crash. For example, this field should be set to 10 if choosing to only file 1 out of every
10 instances of this crash type.
A weight of 1 is used if the field is not set. An explicitly set value of 0 is invalid and
will be rejected.
Defined at line 1650 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_weight ()
Defined at line 1658 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h