Hang diagnostics (#11190)
Release Notes: - Added diagnostics for main-thread hangs on macOS. These are only enabled if you've opted into diagnostics. --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
04cd8dd0f2
commit
0697b417a0
8 changed files with 721 additions and 356 deletions
|
@ -135,3 +135,21 @@ pub struct ExtensionEvent {
|
|||
pub struct AppEvent {
|
||||
pub operation: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BacktraceFrame {
|
||||
pub ip: usize,
|
||||
pub symbol_addr: usize,
|
||||
pub base: Option<usize>,
|
||||
pub symbols: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct HangReport {
|
||||
pub backtrace: Vec<BacktraceFrame>,
|
||||
pub app_version: Option<SemanticVersion>,
|
||||
pub os_name: String,
|
||||
pub os_version: Option<SemanticVersion>,
|
||||
pub architecture: String,
|
||||
pub installation_id: Option<String>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue