Skip to content

Commit 37ce74b

Browse files
jeffhostetlerdscho
authored andcommitted
trace2:gvfs:experiment: add region to apply_virtualfilesystem()
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
1 parent a0b8089 commit 37ce74b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

virtualfilesystem.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ void apply_virtualfilesystem(struct index_state *istate)
268268
if (!repo_config_get_virtualfilesystem(istate->repo))
269269
return;
270270

271+
trace2_region_enter("vfs", "apply", the_repository);
272+
271273
if (!virtual_filesystem_data.len)
272274
get_virtual_filesystem_data(istate->repo, &virtual_filesystem_data);
273275

@@ -338,6 +340,8 @@ void apply_virtualfilesystem(struct index_state *istate)
338340
trace2_data_intmax("vfs", the_repository, "apply/nr_bulk_skip", nr_bulk_skip);
339341
trace2_data_intmax("vfs", the_repository, "apply/nr_explicit_skip", nr_explicit_skip);
340342
}
343+
344+
trace2_region_leave("vfs", "apply", the_repository);
341345
}
342346

343347
/*

0 commit comments

Comments
 (0)