refactor: add more tracy zones to measure startup performance
This commit is contained in:
parent
6ffa2a8991
commit
7747dd3acf
2 changed files with 50 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue