Thread: this.cpuusage
View Single Post
  #1  
Old 08-03-2009, 03:20 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote