how to profile the compiler?

152 views
Skip to first unread message

bigd...@gmail.com

unread,
Dec 27, 2022, 11:18:06 AM12/27/22
to golang-nuts
Hello~

What's the proper way to perform a CPU profiling for the compiler?

I'm looking at a project with lots of generated code and it is pretty slow in compilation (even more so after using generics, probably 10x slow down). I would like to take a look at a CPU profiling to understand what's going on. I also wonder if there is any other tips of debugging slow compilation.

Thanks,

bigd...@gmail.com

unread,
Dec 27, 2022, 11:34:25 AM12/27/22
to golang-nuts
Obviously I missed this, and that answered my question:

Reply all
Reply to author
Forward
0 new messages