From e524b718e1282d0a28672f8412e5dfc4f95febda Mon Sep 17 00:00:00 2001 From: "j. Emrys Landivar (docmerlin)" Date: Fri, 16 Jul 2021 18:03:26 -0500 Subject: [PATCH] feat: add blocking and mutex profiling --- .circleci/config.yml | 4 ++-- cmd/kapacitord/main.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4ad70da33..8222e167e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,6 +55,6 @@ workflows: - build filters: tags: - only: /^v[0-9]+(\.[0-9]+){2}(-(rc|beta)[0-9]+)?/ + only: /^v[0-9]+(\.[0-9]+){2}(-.+)?/ branches: - ignore: /.*/ \ No newline at end of file + ignore: /.*/ diff --git a/cmd/kapacitord/main.go b/cmd/kapacitord/main.go index 5750002c0..6ff0bc285 100644 --- a/cmd/kapacitord/main.go +++ b/cmd/kapacitord/main.go @@ -43,6 +43,8 @@ func main() { fmt.Fprintln(os.Stderr, err) os.Exit(1) } + runtime.SetBlockProfileRate(1) + runtime.SetMutexProfileFraction(1) } // Main represents the program execution.