yass007 / FASTBuildMonitor

Event monitor for FASTBuild
MIT License
80 stars 33 forks source link

Window takes a very long time to appear when it's currently hidden #2

Closed jairbubbles closed 8 years ago

jairbubbles commented 8 years ago

I attached FASTBuild Monitor into the bottom panel: 2016-08-24 14_13_25-scimitar tool dll win64 vs2012 - microsoft visual studio administrator When I got to output and switch back to FASTBuild Monitor it takes several seconds (around 10) for the windows to appear.

yass007 commented 8 years ago

Thanks for reporting this. Is it happening when you open the FB Monitor tab/window for the very first time? or every time you hide it and try to reopen it again?

jairbubbles commented 8 years ago

Each time I hide/reopen it again. As Visual Studio auto opens Output panel when you launch a build, it happens quite often.

yass007 commented 8 years ago

Thanks for the extra info.

So.. I tried to reproduce the multi-seconds lag when compiling a big code-base like Unreal Tournament. I did not get exactly that but I was able to see a small (1sc max) lag when switching between the Output tab and the Monitor one. I'm guessing that what are you experiencing might be due to 2 things (??): 1) Your code base is generating way more events than my current worst case (Unreal). Note that Unreal has something like 11000 events (lines in the FastBuildLog.log) which can be found here C:\Users\AppData\Local\Temp\FastBuild 2) The CPU usage of the machine you are using is so high (when building and switching to the monitor tab) that the monitor process is completely stalled. But that seems very unlikely.

In any case these are wild guesses, it would be nice if you can send me your log so I could try with it.

That being said, I made a significant optimization pass on the monitor CPU usage in v0.95 and it should now reduced by a great factor (details in the commit description). So it would be awesome if you can try with the latest version and see if the lag still happens!

Cheers.

jairbubbles commented 8 years ago

It seems it's better now. I'll test more and keep you posted.

I attached you my last log file but I think it was not a full rebuild, I'll attach you a full log as soon as possible.

FastBuildLog.zip

jairbubbles commented 8 years ago

After more testing it's still slow but not each time. My cpu usage is 100% but I can still use my pc so it's not that bad. 2016-09-01 17_54_41-gestionnaire des taches I'm using VS2012.

jairbubbles commented 8 years ago

I do not have the issue with VS2015 and even when it's slow it's way better now. I'm closing the issue. (I attached another log if you want to make some tests with it.) FastBuildLog.zip