On Fri, Mar 3, 2017 at 9:41 AM,  <max.faceless.f...@gmail.com> wrote:
> Say you have a package with a test suite that completes in 30 seconds on
> average. You run:
>
>> go test -cpuprofile cpu.pprof -timeout 10s
>
>
> Then whether you abort tests by hitting CTRL+C or they end with a panic due
> to
> a low timeout value, in both cases, cpu.pprof will be empty.
> Is this intended behaviour or a bug?

I would not expect to get a CPU profile if you hit ^C.

If the test times out, I would expect to get a CPU profile.  If we
don't get one, I think that is a bug.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to