What platform are you building under - in particular, is it Windows?

On Thursday, 29 June 2023 at 13:11:07 UTC+1 王富民awaw wrote:

> My builds have been very slow recently and I want to know why is `go 
> build` so slow for me.
> Is it due to reading disks or something else?
>
> What is the recommended way of profiling/debugging `go build`?
>
> I know that the `-x` flag prints detailed information of `go build` but it 
> doesn't tell where is time spent.
> I am familiar with profiling ordinary Go programs with pprof, but how can 
> I apply it to `go build`.
> An extensive search returned very few information as it hard to come up 
> with a query for profiling `go build`, not profiling ordinary Go programs 
> nor info about the `build` command itself.
>
> Thanks
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c29d8b4f-9f0e-4887-98a9-137166cc9debn%40googlegroups.com.

Reply via email to