On Wed, Jul 29, 2020 at 2:59 PM Matt Mueller <mattmue...@gmail.com> wrote: > > I'm working on a dev tool for automatically reloading the server when you > change a file. > > I'd like for the reload time to be as fast as possible. Are there any flags > or environment variables that I can set to see where the time is being spent > (compiling, linking etc.)? Also seeing what packages are cached and which are > not would be very helpful.
You can get some idea easily by using "go build -toolexec=/usr/bin/time". That will show for each directory how much time is taken for each command. You could also use a little shell script instead of /usr/bin/time that also displays the command. 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWKjxybVEwM_m73rtDe0%2BnrQvf5BEwaqHiLPvbva5mhmA%40mail.gmail.com.