Skip to content

Commit 92fd571

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

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
@@ -270,6 +270,8 @@ void apply_virtualfilesystem(struct index_state *istate)
270270
if (!repo_config_get_virtualfilesystem(istate->repo))
271271
return;
272272

273+
trace2_region_enter("vfs", "apply", the_repository);
274+
273275
if (!virtual_filesystem_data.len)
274276
get_virtual_filesystem_data(istate->repo, &virtual_filesystem_data);
275277

@@ -340,6 +342,8 @@ void apply_virtualfilesystem(struct index_state *istate)
340342
trace2_data_intmax("vfs", the_repository, "apply/nr_bulk_skip", nr_bulk_skip);
341343
trace2_data_intmax("vfs", the_repository, "apply/nr_explicit_skip", nr_explicit_skip);
342344
}
345+
346+
trace2_region_leave("vfs", "apply", the_repository);
343347
}
344348

345349
/*

0 commit comments

Comments
 (0)