From 41bc04dc12289599f122f396c77fa8103572f094 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Sat, 23 May 2020 14:29:46 -0700 Subject: [PATCH 1/2] add timings for resolving pahts --- pkg/commands/arg_test.go | 1 + pkg/snapshot/snapshot.go | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 pkg/commands/arg_test.go diff --git a/pkg/commands/arg_test.go b/pkg/commands/arg_test.go new file mode 100644 index 0000000000..cdff10da75 --- /dev/null +++ b/pkg/commands/arg_test.go @@ -0,0 +1 @@ +package commands diff --git a/pkg/snapshot/snapshot.go b/pkg/snapshot/snapshot.go index 449ae918a9..6415af8707 100644 --- a/pkg/snapshot/snapshot.go +++ b/pkg/snapshot/snapshot.go @@ -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 { From dcea89c3176f0f363e0c404182d70093155a403a Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Sat, 23 May 2020 15:27:37 -0700 Subject: [PATCH 2/2] rm file --- pkg/commands/arg_test.go | 1 - 1 file changed, 1 deletion(-) delete mode 100644 pkg/commands/arg_test.go diff --git a/pkg/commands/arg_test.go b/pkg/commands/arg_test.go deleted file mode 100644 index cdff10da75..0000000000 --- a/pkg/commands/arg_test.go +++ /dev/null @@ -1 +0,0 @@ -package commands