From 33fee83deabd0cc7040758406a830158f8708b84 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Fri, 20 Aug 2021 15:22:51 +0200 Subject: add flag to record memory profiles Add a new flag `--memory-profile=$path` which creates a memory profile. The generated profile can later be analyzed via `go tool pprof`. [NO TESTS NEEDED] since it's a hidden flag, devs-only. Signed-off-by: Valentin Rothberg --- pkg/domain/entities/engine.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/domain/entities') diff --git a/pkg/domain/entities/engine.go b/pkg/domain/entities/engine.go index af996ad1e..a8023f7cf 100644 --- a/pkg/domain/entities/engine.go +++ b/pkg/domain/entities/engine.go @@ -39,6 +39,7 @@ type PodmanConfig struct { EngineMode EngineMode // ABI or Tunneling mode Identity string // ssh identity for connecting to server MaxWorks int // maximum number of parallel threads + MemoryProfile string // Hidden: Should memory profile be taken RegistriesConf string // allows for specifying a custom registries.conf Remote bool // Connection to Podman API Service will use RESTful API RuntimePath string // --runtime flag will set Engine.RuntimePath -- cgit v1.2.3-54-g00ecf