![]() |
this.cpuusage
Returns the cpu usage(on clientside, as seen in showscriptstats) of the script. Sometimes CPU spikes are too fast to actually 'catch' when you've got to type it in and hit enter, and then get a single instance of CPU usages... so it'd be nice to run this in a timeout or something and set the player's chat to it, and get an instant output on CPU usage in scripts. Would be especially useful when trying to debug and make scripts more efficient.
|
Well with the next release of Graal, since apparently things are going to be built into the client, more debugging features like this should be built in, so we can create awesome debugger GUIs.
I'd imagine one for memory usage could be good too. |
Ya, could be fairly simple to create graphics and such to debug scripts(just to be fancy :P)
All I want though is the ability to see, when I push A to run a script, is there a sudden spike in CPU usage. I have a script now that when I press S it runs a function, and I THINK it's making a very minor pause(high CPU spike), but I can't really tell... it's not something that you can catch with showscriptstats. |
Have you considered watching the CPU usage in the process section of Task Manager? I'd imagine that's our only alternative until something like this is implemented.
|
Bump.
I'd imagine this would also be found useful on iPhone! |
Probably no more useful than on a normal client. Meaning very useful.
Pretty please, Stefan? :D |
There is the new "/clientstats account" RC command which can be used to profile the engine and scripts.
|
Quote:
|
Quote:
|
Usually those things show up in the /clientstats.
|
Quote:
|
The /clientstats also show the CPU usage of scripts and script functions, similar to /functionprofilestart/show/stop on server-side.
|
| All times are GMT +2. The time now is 03:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.