ZIm/crates/gpui/src
Ben Kunkle eeaadc098f
Add GPU info to Sentry crashes (#36624)
Closes #ISSUE

Adds system GPU collection to crash reporting. Currently this is Linux
only.

The system GPUs are determined by reading the `/sys/class/drm` directory
structure, rather than using the exisiting `gpui::Window::gpu_specs()`
method in order to gather more information, and so that the GPU context
is not dependent on Vulkan context initialization (i.e. we still get GPU
info when Zed fails to start because Vulkan failed to initialize).

Unfortunately, the `blade` APIs do not support querying which GPU _will_
be used, so we do not know which GPU was attempted to be used when
Vulkan context initialization fails, however, when Vulkan initialization
succeeds, we send a message to the crash handler containing the result
of `gpui::Window::gpu_specs()` to include the "Active" gpu in any crash
report that may occur

Release Notes:

- N/A *or* Added/Fixed/Improved ...
2025-08-21 19:59:42 -04:00
..
app Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
elements Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
keymap Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
platform windows: Fix RevealInFileManager (#36592) 2025-08-21 08:08:54 +08:00
text_system Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
window gpui: Improve window.prompt to support ESC with non-English cancel text on macOS (#29538) 2025-05-30 15:26:27 +00:00
action.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
app.rs Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
arena.rs Silence a bucketload of logs (#36534) 2025-08-19 20:26:56 -06:00
asset_cache.rs gpui: Relax AssetLogger trait bounds (#29450) 2025-04-29 12:43:54 -07:00
assets.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
bounds_tree.rs gpui: Optimize the ordering update in the BoundsTree (#31025) 2025-05-30 08:23:27 -07:00
color.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
colors.rs gpui: Add a standard text example (#30747) 2025-05-16 17:35:44 +02:00
element.rs Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
executor.rs Add a test for remote tool use by the agent (#30289) 2025-05-08 16:53:04 -04:00
geometry.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
global.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
gpui.rs Add GPU info to Sentry crashes (#36624) 2025-08-21 19:59:42 -04:00
input.rs Implement character index for point (#23989) 2025-02-04 20:15:43 +00:00
inspector.rs Fix clippy::needless_borrow lint violations (#36444) 2025-08-18 21:54:35 +00:00
interactive.rs gpui: Impl Default for ClickEvent (#35751) 2025-08-06 23:24:37 -04:00
key_dispatch.rs Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
keymap.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
path_builder.rs Fix clippy::needless_borrow lint violations (#36444) 2025-08-18 21:54:35 +00:00
platform.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
prelude.rs Sketch in a table for the keybindings UI (#32436) 2025-06-30 19:25:11 -04:00
scene.rs Fix underline flickering (#35989) 2025-08-11 19:17:48 +02:00
shared_string.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
styled.rs Add grid support to GPUI (#36153) 2025-08-14 00:01:17 +00:00
subscription.rs Handle auth for claude (#36442) 2025-08-18 20:40:59 +00:00
svg_renderer.rs gpui: Use static keyword with LazyLock when loading system fonts (#34555) 2025-07-18 12:35:38 +02:00
tab_stop.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
taffy.rs clippy: println_empty_string & non_minimal_cfg (#36614) 2025-08-20 18:45:40 +00:00
test.rs Add seed argument to #[gpui::test] attribute macro (#26764) 2025-03-14 13:40:02 -03:00
text_system.rs Fix a bunch of other low-hanging style lints (#36498) 2025-08-19 21:26:17 +02:00
util.rs Another batch of lint fixes (#36521) 2025-08-19 20:33:44 +00:00
view.rs Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00
window.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00