Skip to content

Commit

Permalink
trace2:gvfs:experiment: add region to apply_virtualfilesystem()
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler authored and dscho committed Nov 20, 2023
1 parent ed99b1b commit d68452c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virtualfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ void apply_virtualfilesystem(struct index_state *istate)
if (!git_config_get_virtualfilesystem())
return;

trace2_region_enter("vfs", "apply", the_repository);

if (!virtual_filesystem_data.len)
get_virtual_filesystem_data(&virtual_filesystem_data);

Expand Down Expand Up @@ -338,6 +340,8 @@ void apply_virtualfilesystem(struct index_state *istate)
trace2_data_intmax("vfs", the_repository, "apply/nr_bulk_skip", nr_bulk_skip);
trace2_data_intmax("vfs", the_repository, "apply/nr_explicit_skip", nr_explicit_skip);
}

trace2_region_leave("vfs", "apply", the_repository);
}

/*
Expand Down

0 comments on commit d68452c

Please sign in to comment.