Skip to content

Commit

Permalink
Merge pull request #1284 from tejal29/add_timings
Browse files Browse the repository at this point in the history
add timings for resolving paths
  • Loading branch information
tejal29 authored May 23, 2020
2 parents d1faa71 + dcea89c commit e0f9357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e0f9357

Please sign in to comment.