buildx
buildx copied to clipboard
pprof: take cpu and memory profiles by setting environment variables
When run in standalone mode, the environment variables DOCKER_BUILDX_CPU_PROFILE and DOCKER_BUILDX_MEM_PROFILE will cause profiles to be written by the CLI.
is this for 0.18.0?
Refactored the run into a single function that calls runStandalone or runPlugin. The main reason for duplicating that code was because of the calls to os.Exit in the main function. We can tackle that with a future clean up since there are also some other places that I think call os.Exit when they shouldn't.
@dvdksn For docs follow-up we could add https://github.com/docker/docs/pull/21214 to contributing docs.