There’s a built-in profiler called ELP. You can try something like M-x elp-instrument-package
, enter “vc”, and then try finding a file. Afterwards, M-x elp-results
will show you a profile report.
(Note that if the time is instead being spent in non-vc-related functions, this technique will not show it, but you can instrument further packages if you like.)