Tooling · Inspection: inspector, FPS meter, render counter and event logger
install_inspector draws gpui's debug inspector in Ely's look: a panel with the picked box's source, ids and box model, and its margin, border, padding and size drawn over the page through raise, since the panel scrolls. FpsMeter counts frames on the executor's clock and colors each by the frames it missed. RenderCounter counts the renders of the view that draws it. EventLogger lists the input that reaches what it holds, its canvas laid first so a child's stop hides nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a0d93eb35f
commit
5f951ea581
14 files changed
+1378
-7
No files matched your search
@@ -98,6 +98,8 @@ fn main() -> Result<()> {
|
||||
.with_assets(Assets)
|
||||
.run(move |cx: &mut App| {
|
||||
ely_gpui_component::init(cx);
|
||||
#[cfg(debug_assertions)]
|
||||
ely_gpui_component::tooling::install_inspector(cx);
|
||||
pages::bind_keys(cx);
|
||||
pages::install_i18n(cx);
|
||||
cx.bind_keys([KeyBinding::new("cmd-q", Quit, None)]);
|
||||
|
||||
Reference in new issue
Block a user