add timings for resolving pahts

This commit is contained in:
Tejal Desai 2020-05-23 14:29:46 -07:00
parent 0522fe2485
commit 41bc04dc12
2 changed files with 3 additions and 0 deletions

1
pkg/commands/arg_test.go Normal file
View File

@ -0,0 +1 @@
package commands

View File

@ -158,6 +158,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
)
timing.DefaultRun.Stop(timer)
timer = timing.Start("Resolving Paths")
resolvedFiles, err := filesystem.ResolvePaths(foundPaths, s.whitelist)
if err != nil {
return nil, nil, err
@ -207,6 +208,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
}
}
timing.DefaultRun.Stop(timer)
sort.Strings(filesToAdd)
// Add files to the layered map
for _, file := range filesToAdd {