Enumerations
enum class ItemLocation
| Name | Value |
|---|---|
| kMemory | 0 |
| kCache | 1 |
| kTmp | 2 |
Indicates where a piece of infomormation is located.
Defined at line 13 of file ../../src/developer/forensics/crash_reports/item_location.h
enum class FilingResult
| Name | Value |
|---|---|
| kReportUploaded | 0 |
| kReportOnDisk | 1 |
| kReportInMemory | 2 |
| kReportNotFiledUserOptedOut | 3 |
| kInvalidArgsError | 4 |
| kServerError | 5 |
| kPersistenceError | 6 |
| kQuotaReachedError | 7 |
Defined at line 16 of file ../../src/developer/forensics/crash_reports/filing_result.h
enum class ReportingPolicy
| Name | Value | Comments |
|---|---|---|
| kUndecided | 0 |
Reports are deleted only due to space constraints and whether or not they're eligible for |
| kArchive | 1 |
Reports are deleted only due to space constraints and never eligible for upload. |
| kDoNotFileAndDelete | 2 |
New reports are not filed and pending reports are deleted immediately. |
| kUpload | 3 |
Reports are deleted when they are uploaded successfully or due to space constraints and are |
The ReportingPolicy dictates how reports (and by extension their data) are handled by the crash
reporter. The policy dictates two things: 1) when reports are deleted and 2) whether or not
reports are eligible to be uploaded.
Defined at line 24 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.h
Records
-
class AnnotationMap -
class CrashRegister -
class CrashRegisterInfo -
class CrashReporter -
class CrashReporterInfo -
class CrashServer -
class InfoContext -
class InspectManager -
class LogTags -
class ManagedSnapshot -
class MissingSnapshot -
class Product -
class ProductQuotas -
class ProgramShortname -
class Queue -
class QueueInfo -
class Report -
class ReportStore -
class ReportStoreMetadata -
class ReportingPolicyWatcher -
class ScopedTestReportStore -
class SizedDataReader -
class SnapshotCollector -
class SnapshotPersistence -
class SnapshotPersistenceMetadata -
class SnapshotStore -
class StaticReportingPolicyWatcher -
class StoreInfo -
class StubCrashServer -
class UserReportingPolicyWatcher
Functions
-
std::string ToString (ItemLocation location)Defined at line 11 of file ../../src/developer/forensics/crash_reports/item_location.cc
-
bool IsSpecialCaseSnapshot (const std::string & uuid)Returns true if |uuid| is one of the uuids for MissingSnapshots when data isn't successfully
collected.
Defined at line 16 of file ../../src/developer/forensics/crash_reports/snapshot.cc
-
bool operator== (const Product & a, const Product & b)Defined at line 20 of file ../../src/developer/forensics/crash_reports/product.cc
-
fpromise::result<fuchsia::feedback::FilingSuccess, fuchsia::feedback::FilingError> ToFidlFilingResult (FilingResult result)Defined at line 12 of file ../../src/developer/forensics/crash_reports/filing_result.cc
-
std::string ToString (ReportingPolicy policy)Defined at line 12 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.cc
-
std::string ToReason (const Error error)Provide a reason why |error| occurred that is specific to feedback data collection.
Defined at line 18 of file ../../src/developer/forensics/crash_reports/errors.h
-
void PrintTo (const ItemLocation & location, std::ostream * os)Pretty-prints ItemLocation in gTest matchers instead of the default byte string in case
of failed expectations.
Defined at line 73 of file ../../src/developer/forensics/testing/gpretty_printers.h
-
void PrintTo (const FilingResult & result, std::ostream * os)Pretty-prints FilingResult in gTest matchers instead of the default byte string in case of
failed expectations.
Defined at line 91 of file ../../src/developer/forensics/testing/gpretty_printers.h
-
std::pair<bool, std::optional<std::string>> ParseDartModulesFromStackTrace (std::string_view stack_trace)Parses Dart Module information from |stack_trace|, if it is a valid, unsymbolicated Dart
stack trace.
The first value of the pair indicates if |stack_trace| is an unsymbolicated Dart stack trace
(true means yes) and the second value is the module information parsed from the stack trace, if
parsing doesn't fail. We expect symbolized and unsymbolicated stack traces so we only want to
warn on unexpected parsing failures.
Defined at line 118 of file ../../src/developer/forensics/crash_reports/dart_module_parser.cc
-
void PrintTo (const Product & product, std::ostream * os)Defined at line 122 of file ../../src/developer/forensics/testing/gpretty_printers.h
-
void PrintTo (const ReportingPolicy & policy, std::ostream * os)Pretty-prints ReportingPolicy in gTest matchers instead of the default byte
string in case of failed expectations.
Defined at line 161 of file ../../src/developer/forensics/crash_reports/tests/reporting_policy_watcher_unittest.cc
-
AnnotationMap GetReportAnnotations (const feedback::Annotations & snapshot_annotations)Methods to build annotations from various data collected during report creation.
Defined at line 216 of file ../../src/developer/forensics/crash_reports/report_util.cc
-
AnnotationMap GetReportAnnotations (Product product, const AnnotationMap & annotations)Defined at line 200 of file ../../src/developer/forensics/crash_reports/report_util.cc
-
fpromise::result<Report> MakeReport (fuchsia::feedback::CrashReportinput_report,const ProgramShortname &program_shortname,ReportIdreport_id,const std::string &snapshot_uuid,const feedback::Annotations &snapshot_annotations,const std::optional<timekeeper::time_utc> ¤t_time,Productproduct,boolis_hourly_report)Builds the final report to add to the queue.
* Most annotations are shared across all crash reports, e.g. the device uptime.
* Some annotations are report-specific, e.g., Dart exception type.
* Adds any annotations from |report|.
* Some attachments are report-specific, e.g., Dart exception stack trace.
* Adds any attachments from |report|.
Defined at line 247 of file ../../src/developer/forensics/crash_reports/report_util.cc
Variables
const char[] kStubCrashServerUrl
Defined at line 17 of file ../../src/developer/forensics/crash_reports/tests/stub_crash_server.cc