www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - serve-d and spindump

reply Joel <joelcnz gmail.com> writes:
On my macOS 10.14.6 computer, I close serve-d thread when it's 
using too much CPU, I also knock off spindump for the same 
reason. I get artifacts and junk that flash on my screen - I 
don't know if that's connected to removing those or not. Does 
anyone else have these problems? I always have Visual Code 
running for D programming.

I found an old solitary post[0] about it, or so.

[0] Bug with profiling GC with multiple threads/fibers
Sep 13 2019
parent reply psyscout <oracle.gm gmail.com> writes:
On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote:
 On my macOS 10.14.6 computer, I close serve-d thread when it's 
 using too much CPU, I also knock off spindump for the same 
 reason. I get artifacts and junk that flash on my screen - I 
 don't know if that's connected to removing those or not. Does 
 anyone else have these problems? I always have Visual Code 
 running for D programming.

 I found an old solitary post[0] about it, or so.

 [0] Bug with profiling GC with multiple threads/fibers
I had a similar issue with crazy CPU consumption when I used VS Code. The root cause for me was "autosave" and "build on save" settings turned on simultaneously. Basically, it was trying to build the entire project every time save happened, and it was frequent enough to overwhelm the CPU. The fix was in: File=>Preferences=>Settings, Then extensions=>D:Enable Dub Linting, have to be disabled (unchecked). Hopefully, this helps.
Sep 14 2019
parent Joel <joelcnz gmail.com> writes:
On Saturday, 14 September 2019 at 10:14:19 UTC, psyscout wrote:
 On Friday, 13 September 2019 at 23:47:00 UTC, Joel wrote:
 [...]
I had a similar issue with crazy CPU consumption when I used VS Code. The root cause for me was "autosave" and "build on save" settings turned on simultaneously. Basically, it was trying to build the entire project every time save happened, and it was frequent enough to overwhelm the CPU. The fix was in: File=>Preferences=>Settings, Then extensions=>D:Enable Dub Linting, have to be disabled (unchecked). Hopefully, this helps.
Thanks psyscout - I'm now trying that. On my machine, I used [command]+[,] to get to settings.
Sep 14 2019