refactor: add more tracy zones to measure startup performance

This commit is contained in:
CJ van den Berg 2025-02-22 21:26:17 +01:00
parent 6ffa2a8991
commit 7747dd3acf
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 50 additions and 9 deletions

View file

@ -1053,6 +1053,8 @@ fn replace_active_view(self: *Self, widget: Widget) !void {
}
fn create_editor(self: *Self) !void {
const frame = tracy.initZone(@src(), .{ .name = "create_editor" });
defer frame.deinit();
try self.delete_active_view();
command.executeName("enter_mode_default", .{}) catch {};
var editor_widget = try ed.create(self.allocator, self.plane, &self.buffer_manager);