Goland CPU Profiler and Coverage greyed out on Arch Linux with Go

Answered

Hello i just got Goland and installed everything and have been using it pretty much flawlessly for the past couple of months but recently as my application written in Go was coming out of its most preliminary development phase i wished to take a look at the efficiency of my program and where i could potentially speed it up. And so i discovered the CPU profiler which appeared to be exactly what i need but for some arbitrary reason not given by Goland both coverage and the CPU profiler are inaccessible they're just greyed out and adding build configs and changing options doesn't seem to fix anything. Here's a photo of my run bar.

 

 

Laptop Spec: Rog Flow X13

GPU: 3050ti

CPU: AMD Ryzen 9 5900HS

 

0
1 comment
Official comment

Hello Killsteal Cs,

You can run Code Coverage configurations for test files only (*_test.go), please see: https://www.jetbrains.com/help/go/running-test-with-coverage.html

Please, make sure that you select Go Test configuration instead of Go Build under Run | Edit Configurations.

Feel free to follow GO-7101 to support the profiler for Go Build configuration.

I hope it helps.

Please sign in to leave a comment.