Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   this.cpuusage (https://forums.graalonline.com/forums/showthread.php?t=87237)

DustyPorViva 08-03-2009 03:20 AM

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.

fowlplay4 08-03-2009 03:31 AM

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.

DustyPorViva 08-03-2009 03:34 AM

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.

fowlplay4 08-03-2009 03:39 AM

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.

ffcmike 01-30-2010 03:00 AM

Bump.

I'd imagine this would also be found useful on iPhone!

coreys 01-30-2010 05:35 AM

Probably no more useful than on a normal client. Meaning very useful.
Pretty please, Stefan? :D

Admins 02-06-2010 02:20 AM

There is the new "/clientstats account" RC command which can be used to profile the engine and scripts.

Immolate 02-06-2010 02:22 AM

Quote:

Originally Posted by Stefan (Post 1554416)
There is the new "/clientstats account" RC command which can be used to profile the engine and scripts.

Doesn't really help when looking for spikes in CPU usage unless there's a variable to display.

DustyPorViva 02-06-2010 02:26 AM

Quote:

Originally Posted by Immolate (Post 1554419)
Doesn't really help when looking for spikes in CPU usage unless there's a variable to display.

Ya, this. For example in my movement system I was getting complaints that the freezetime on the sword swing was too long, even though the number was right. I couldn't check if the freeze was associated with a cpu spike or what.

Admins 02-07-2010 04:03 PM

Usually those things show up in the /clientstats.

coreys 02-08-2010 06:06 AM

Quote:

Originally Posted by Stefan (Post 1554758)
Usually those things show up in the /clientstats.

Well, his point I believe is that this can't really be used to profile his script quite so much.

Admins 02-18-2010 03:04 PM

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.