monitoring system performance
BlitzMax Forums/BlitzMax Beginners Area/monitoring system performance
| ||
Not sure if this where this post should be . I wanted to see what cpu percentage/memory a BMX program was utilizing for example I was running the snowflake sample program and when I would bring up task manager window to monitor the program it would initially show that the program was taking ~ 4% cpu time and after a few seconds the screen would blank and the task manager would report that the snowflake prgram was consuming 99% cpu process time. When I alt tab'd back to the snowflake program and then brought up task manager again it would show the program taking about 5% and then again after a few seconds the screen would blank and task manager showing that snowflake.exe taking up 99% cpu. Is this right ? |
| ||
Application switching will make the CPU usage fluctuate, yes. In full-screen mode the graphics driver will try and hog all the CPU time it can get its hands on, which explains the 99% CPU time. In windowed mode it will try and be nicer to other applications. I wrote this - http://blitzbasic.com/Community/posts.php?topic=43396 - a while back to see where my CPU usage was going. It doesn't measure total CPU usage, but it can tell you how much time each part of your program is taking and identify any bottlenecks. I don't know if that helps at all. |
| ||
Yes , thanks for the info. Rod |