add mem profile option and refactor python cataloger for batch requests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-12-15 10:59:14 -05:00
parent be5917a058
commit 82c8a8e17b
6 changed files with 141 additions and 89 deletions
+2
View File
@@ -56,6 +56,7 @@ type anchore struct {
type Development struct {
ProfileCPU bool `mapstructure:"profile-cpu"`
ProfileMem bool `mapstructure:"profile-mem"`
}
// LoadApplicationConfig populates the given viper object with application configuration discovered on disk
@@ -222,4 +223,5 @@ func setNonCliDefaultValues(v *viper.Viper) {
v.SetDefault("log.structured", false)
v.SetDefault("check-for-app-update", true)
v.SetDefault("dev.profile-cpu", false)
v.SetDefault("dev.profile-mem", false)
}