@@ -488,7 +488,7 @@ pub const Handle = struct {
488488 comptime Context : type ,
489489 ) error {OutOfMemory }! T {
490490 @branchHint (.cold );
491- const tracy_zone = tracy .trace (@src ());
491+ const tracy_zone = tracy .traceNamed (@src (), "getLazy(" ++ name ++ ")" );
492492 defer tracy_zone .end ();
493493
494494 const has_data_field_name = "has_" ++ name ;
@@ -603,6 +603,9 @@ pub fn getHandle(self: *DocumentStore, uri: Uri) ?*Handle {
603603}
604604
605605pub fn readUri (store : * DocumentStore , uri : Uri ) ? [:0 ]const u8 {
606+ const tracy_zone = tracy .trace (@src ());
607+ defer tracy_zone .end ();
608+
606609 const file_path = URI .parse (store .allocator , uri ) catch | err | {
607610 log .err ("failed to parse URI '{s}': {}" , .{ uri , err });
608611 return null ;
@@ -921,6 +924,9 @@ fn notifyBuildEnd(self: *DocumentStore, status: EndStatus) void {
921924}
922925
923926fn invalidateBuildFileWorker (self : * DocumentStore , build_file_uri : Uri , is_build_file_uri_owned : bool ) void {
927+ const tracy_zone = tracy .trace (@src ());
928+ defer tracy_zone .end ();
929+
924930 defer if (is_build_file_uri_owned ) self .allocator .free (build_file_uri );
925931
926932 var end_status : EndStatus = .failed ;
@@ -968,6 +974,9 @@ fn invalidateBuildFileWorker(self: *DocumentStore, build_file_uri: Uri, is_build
968974}
969975
970976pub fn loadTrigramStores (self : * DocumentStore ) error {OutOfMemory }! []* DocumentStore.Handle {
977+ const tracy_zone = tracy .trace (@src ());
978+ defer tracy_zone .end ();
979+
971980 if (builtin .single_threaded ) {
972981 for (self .handles .values ()) | handle | {
973982 _ = try handle .getTrigramStore ();
@@ -1166,6 +1175,9 @@ fn buildDotZigExists(dir_path: []const u8) bool {
11661175/// See `Handle.getAssociatedBuildFileUri`.
11671176/// Caller owns returned memory.
11681177fn collectPotentialBuildFiles (self : * DocumentStore , uri : Uri ) ! []* BuildFile {
1178+ const tracy_zone = tracy .trace (@src ());
1179+ defer tracy_zone .end ();
1180+
11691181 var potential_build_files : std .ArrayListUnmanaged (* BuildFile ) = .empty ;
11701182 errdefer potential_build_files .deinit (self .allocator );
11711183
@@ -1372,6 +1384,9 @@ fn createAndStoreDocument(
13721384}
13731385
13741386pub fn loadDirectoryRecursive (store : * DocumentStore , directory_uri : Uri ) ! usize {
1387+ const tracy_zone = tracy .trace (@src ());
1388+ defer tracy_zone .end ();
1389+
13751390 const workspace_path = try URI .parse (store .allocator , directory_uri );
13761391 defer store .allocator .free (workspace_path );
13771392
0 commit comments