R
R
RoadToGamedev2021-08-17 22:43:09
go
RoadToGamedev, 2021-08-17 22:43:09

How to find out how long a Golang program took to compile?

Hello, tell me what are the ways to find out how long the program was compiled?
And how to get debug information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey〒., 2021-08-17
@RoadToGamedev

You need to time the execution.
Unix systems have a command: timego ... .
Windows PowerShell has Measure-Command{start-process go ... }
And additional debug information can be obtained using flags
https://pkg.go.dev/cmd/compile#hdr-Command_Line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question