Copy as Markdown
Other Tools
// -*- mode: C++ -*-
// AUTOGENERATED BY glean_parser. DO NOT EDIT.
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
#ifndef mozilla_GleanCrashesMetrics_h
#define mozilla_GleanCrashesMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace crash {
/**
* generated from crash.app_build
* The build id of the application. This may differ from `client_info` because a main process crash may be reported later by a different (e.g. updated) client.
*/
constexpr impl::StringMetric app_build(4576);
/**
* generated from crash.app_channel
* The release channel of the application. This may differ from `client_info` because a main process crash may be reported later by a different (e.g. updated) client.
*/
constexpr impl::StringMetric app_channel(4577);
/**
* generated from crash.app_display_version
* The version of the application. This may differ from `client_info` because a main process crash may be reported later by a different (e.g. updated) client.
*/
constexpr impl::StringMetric app_display_version(4578);
/**
* generated from crash.background_task_name
* The name of the background task if launched as one.
*/
constexpr impl::StringMetric background_task_name(4580);
/**
* generated from crash.compressed_store_size
* Size (in bytes) of the compressed crash store JSON file.
* This metric was generated to correspond to the Legacy Telemetry exponential histogram CRASH_STORE_COMPRESSED_BYTES.
*/
constexpr impl::MemoryDistributionMetric compressed_store_size(4581);
/**
* generated from crash.event_loop_nesting_level
* Indicates the nesting level of the event loop.
*/
constexpr impl::QuantityMetric event_loop_nesting_level(4582);
/**
* generated from crash.font_name
* The font family name that is being loaded when the crash occurred.
*/
constexpr impl::StringMetric font_name(4583);
/**
* generated from crash.gpu_process_launch
* The number of times that the GPU process was launched.
*/
constexpr impl::QuantityMetric gpu_process_launch(4584);
/**
* generated from crash.ipc_channel_error
* The error reason for an ipc-based content crash.
*/
constexpr impl::StringMetric ipc_channel_error(4585);
/**
* generated from crash.is_garbage_collecting
* Indicates that the crash occurred while the garbage collector was running.
*/
constexpr impl::BooleanMetric is_garbage_collecting(4586);
/**
* generated from crash.main_thread_runnable_name
* Name of the currently executing `nsIRunnable` on the main thread. Nightly-only.
*/
constexpr impl::StringMetric main_thread_runnable_name(4587);
/**
* generated from crash.minidump_sha256_hash
* The SHA256 hash of the associated minidump file, if any.
*/
constexpr impl::StringMetric minidump_sha256_hash(4588);
/**
* generated from crash.moz_crash_reason
* Contains the string passed to `MOZ_CRASH()`.
*/
constexpr impl::StringMetric moz_crash_reason(4589);
/**
* generated from crash.process_type
* The type of process that experienced a crash. See the full list of options [here](https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/data/crash-ping.html#process-types).
*/
constexpr impl::StringMetric process_type(4590);
/**
* generated from crash.profiler_child_shutdown_phase
* The shutdown phase of the profiler.
*/
constexpr impl::StringMetric profiler_child_shutdown_phase(4591);
/**
* generated from crash.remote_type
* The type of the content process. See the full list of options [here](https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/data/crash-ping.html#remote-process-types).
*/
constexpr impl::StringMetric remote_type(4593);
/**
* generated from crash.shutdown_progress
* The shutdown phase in which the crash occurred.
*/
constexpr impl::StringMetric shutdown_progress(4594);
/**
* generated from crash.startup
* If true, the crash occurred during process startup.
*/
constexpr impl::BooleanMetric startup(4596);
/**
* generated from crash.submit_attempt
*/
enum class SubmitAttemptLabel: uint16_t {
eMainCrash = 0,
eMainHang = 1,
eContentCrash = 2,
eContentHang = 3,
ePluginCrash = 4,
ePluginHang = 5,
eGmpluginCrash = 6,
eGmpluginHang = 7,
eGpuCrash = 8,
eGpuHang = 9,
eVrCrash = 10,
eVrHang = 11,
eRddCrash = 12,
eRddHang = 13,
eSocketCrash = 14,
eSocketHang = 15,
eUtilityCrash = 16,
eUtilityHang = 17,
eSandboxbrokerCrash = 18,
eSandboxbrokerHang = 19,
eForkserverCrash = 20,
eForkserverHang = 21,
e__Other__,
};
/**
* An attempt to submit a crash. Keyed on the CrashManager Crash.type.
* This metric was generated to correspond to the Legacy Telemetry count histogram PROCESS_CRASH_SUBMIT_ATTEMPT.
*/
constexpr impl::Labeled<impl::CounterMetric, SubmitAttemptLabel> submit_attempt(4597);
/**
* generated from crash.time
* The time at which the crash occurred.
*/
constexpr impl::DatetimeMetric time(4598);
/**
* generated from crash.utility_actors_name
* List of IPC actor names running on a utility process instance (if the crashing process was a utility process).
*/
constexpr impl::StringListMetric utility_actors_name(4599);
}
namespace crash_windows {
/**
* generated from crash.windows.error_reporting
* Indicates if the crash was intercepted by the Windows Error Reporting runtime exception module.
*/
constexpr impl::BooleanMetric error_reporting(4600);
/**
* generated from crash.windows.file_dialog_error_code
* The HRESULT returned from a Win32 system call leading to termination of the file-dialog utility process. MozCrashReason is expected to provide context for the value.
*/
constexpr impl::StringMetric file_dialog_error_code(4601);
}
namespace crash_submission {
/**
* generated from crash_submission.channel_status
* Collecting XHR channel status on error code when statusCode == 0.
*/
constexpr impl::Labeled<impl::CounterMetric, DynamicLabel> channel_status(4602);
/**
* generated from crash_submission.collector_errors
* Amount and error name reported when performing crash submission.
*/
constexpr impl::Labeled<impl::CounterMetric, DynamicLabel> collector_errors(4603);
/**
* generated from crash_submission.failure
* Number of failed crash report submissions
*/
constexpr impl::CounterMetric failure(4604);
/**
* generated from crash_submission.pending
* Number of pending crash report submissions
*/
constexpr impl::CounterMetric pending(4605);
/**
* generated from crash_submission.success
* Number of successfull crash report submissions
*/
constexpr impl::CounterMetric success(4606);
}
namespace dll_blocklist {
/**
* generated from dll_blocklist.init_failed
* Indicates whether initialization of the DLL blocklist failed.
*/
constexpr impl::BooleanMetric init_failed(4607);
/**
* generated from dll_blocklist.list
* A list of blocked DLLs.
*/
constexpr impl::StringListMetric list(4608);
/**
* generated from dll_blocklist.user32_loaded_before
* Indicates whether `user32.dll` was loaded before the DLL blocklist was initialized.
*/
constexpr impl::BooleanMetric user32_loaded_before(4609);
}
namespace environment {
/**
* generated from environment.headless_mode
* Whether the app was invoked in headless mode via `--headless` or `--backgroundtask`.
*/
constexpr impl::BooleanMetric headless_mode(4610);
/**
* generated from environment.nimbus_enrollments
* The active Nimbus experiments and rollouts, as well as their branches.
*/
constexpr impl::StringListMetric nimbus_enrollments(4611);
/**
* generated from environment.uptime
* The start time of the application.
*/
constexpr impl::TimespanMetric uptime(4612);
}
namespace memory {
/**
* generated from memory.available_commit
* Available commit size.
*/
constexpr impl::QuantityMetric available_commit(4613);
/**
* generated from memory.available_physical
* Available physical memory.
*/
constexpr impl::QuantityMetric available_physical(4614);
/**
* generated from memory.available_swap
* Available swap memory.
*/
constexpr impl::QuantityMetric available_swap(4615);
/**
* generated from memory.available_virtual
* Available virtual memory.
*/
constexpr impl::QuantityMetric available_virtual(4616);
/**
* generated from memory.js_large_allocation_failure
* A large allocation couldn't be satisfied: What was its state when the crash happened.
*/
constexpr impl::StringMetric js_large_allocation_failure(4617);
/**
* generated from memory.js_out_of_memory
* A small allocation couldn't be satisfied: What was its state when the crash happened.
*/
constexpr impl::StringMetric js_out_of_memory(4618);
/**
* generated from memory.low_physical
* The number of times the available memory tracker has detected that free physical memory is running low.
*/
constexpr impl::QuantityMetric low_physical(4619);
/**
* generated from memory.oom_allocation_size
* The size of the allocation that caused on OOM crash.
*/
constexpr impl::QuantityMetric oom_allocation_size(4620);
/**
* generated from memory.purgeable_physical
* The amount of memory that can be deallocated by the OS in case of memory pressure.
*/
constexpr impl::QuantityMetric purgeable_physical(4621);
/**
* generated from memory.system_use_percentage
* The percentage of memory in use.
*/
constexpr impl::QuantityMetric system_use_percentage(4622);
/**
* generated from memory.texture
* The amount of memory used in textures.
*/
constexpr impl::QuantityMetric texture(4623);
/**
* generated from memory.total_page_file
* The total page file size.
*/
constexpr impl::QuantityMetric total_page_file(4624);
/**
* generated from memory.total_physical
* The total physical memory.
*/
constexpr impl::QuantityMetric total_physical(4625);
/**
* generated from memory.total_virtual
* The total virtual memory.
*/
constexpr impl::QuantityMetric total_virtual(4626);
}
namespace windows {
/**
* generated from windows.package_family_name
* The Package Family Name of Firefox, if installed through an MSIX package.
*/
constexpr impl::StringMetric package_family_name(4649);
}
} // namespace mozilla::glean
#endif // mozilla_GleanCrashesMetrics_h