From 8c42cb59b00dd797e3fe955f80e7957972415db7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 12:48:01 +0200 Subject: [PATCH] Bump github.com/pkg/profile from 1.5.0 to 1.6.0 (#363) * Bump github.com/pkg/profile from 1.5.0 to 1.6.0 Bumps [github.com/pkg/profile](https://github.com/pkg/profile) from 1.5.0 to 1.6.0. - [Release notes](https://github.com/pkg/profile/releases) - [Commits](https://github.com/pkg/profile/compare/v1.5.0...v1.6.0) Signed-off-by: dependabot[bot] * Update go modules * Fix signature Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CrazyMax --- cmd/main.go | 4 ++-- go.mod | 2 +- go.sum | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index bef5c76c..cefd7ff7 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -90,9 +90,9 @@ func main() { case "mem": defer profile.Start(profile.MemProfile, profilePath).Stop() case "alloc": - defer profile.Start(profile.MemProfile, profile.MemProfileAllocs(), profilePath).Stop() + defer profile.Start(profile.MemProfileAllocs, profilePath).Stop() case "heap": - defer profile.Start(profile.MemProfile, profile.MemProfileHeap(), profilePath).Stop() + defer profile.Start(profile.MemProfileHeap, profilePath).Stop() case "routines": defer profile.Start(profile.GoroutineProfile, profilePath).Stop() case "mutex": diff --git a/go.mod b/go.mod index 3b21dfae..eb895aec 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/opencontainers/go-digest v1.0.0 github.com/panjf2000/ants/v2 v2.4.4 github.com/pkg/errors v0.9.1 - github.com/pkg/profile v1.5.0 + github.com/pkg/profile v1.6.0 github.com/robfig/cron/v3 v3.0.1 github.com/rs/zerolog v1.21.0 github.com/russross/blackfriday/v2 v2.1.0 diff --git a/go.sum b/go.sum index 4679501f..55a501d1 100644 --- a/go.sum +++ b/go.sum @@ -1152,8 +1152,9 @@ github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.5.0 h1:042Buzk+NhDI+DeSAA62RwJL8VAuZUMQZUjCsRz1Mug= github.com/pkg/profile v1.5.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= +github.com/pkg/profile v1.6.0 h1:hUDfIISABYI59DyeB3OTay/HxSRwTQ8rB/H83k6r5dM= +github.com/pkg/profile v1.6.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=