diff options
author | 2019-03-29 02:37:17 -0400 | |
---|---|---|
committer | 2019-03-29 06:37:17 +0000 | |
commit | c144da2524fc705cb20f23c4a4ce36c2ff45525e (patch) | |
tree | dda9aabaa63f31b094d872118943ab9aaa69c6ef /plugin/pprof/setup_test.go | |
parent | f6eb2a4c14177277572de7c9313f41f53a8f48c7 (diff) | |
download | coredns-c144da2524fc705cb20f23c4a4ce36c2ff45525e.tar.gz coredns-c144da2524fc705cb20f23c4a4ce36c2ff45525e.tar.zst coredns-c144da2524fc705cb20f23c4a4ce36c2ff45525e.zip |
plugin/pprof - add option to enable block profiling (#2729)
* - add an option for block profiling to plugin pprof
* - move option block into nested block
Diffstat (limited to 'plugin/pprof/setup_test.go')
-rw-r--r-- | plugin/pprof/setup_test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugin/pprof/setup_test.go b/plugin/pprof/setup_test.go index eaa4cb37e..276229379 100644 --- a/plugin/pprof/setup_test.go +++ b/plugin/pprof/setup_test.go @@ -14,11 +14,21 @@ func TestPProf(t *testing.T) { {`pprof`, false}, {`pprof 1.2.3.4:1234`, false}, {`pprof :1234`, false}, - {`pprof {}`, true}, + {`pprof :1234 -1`, true}, + {`pprof { + }`, false}, {`pprof /foo`, true}, {`pprof { a b }`, true}, + {`pprof { block + }`, false}, + {`pprof :1234 { + block 20 + }`, false}, + {`pprof { + block 20 30 + }`, true}, {`pprof pprof`, true}, } |