Stats to lua scripting
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Stats to lua scripting

Started by nEgativE, 09 January, 2007, 19:28:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nEgativE

Hi there, tell me PPK.. is it possible to have some stats, like memory usage, cpu.. and total bandwidth received/sent to lua scripting ? and.. i guess this is possible, don't know how.. get total memory usage of scripts to lua scripting also.

Thx in advance.. and excelent work there !

PPK

It is possible, but it is too much work...
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

CrazyGuy

lua has calls for memory usage on current script
If you would save these values on timer interval in each script and then read them back in a "core" script, you can add em up and pass on the total mem usage.
cpu usage can be calculated using os.time and os.count , although we (me and Hungarista) tried and couldn't really get a good answer.
Bandwith usage by script sounds unmeasurable. First of all it's the hub that has the incomming and outgoing data, so its only the hub and not the script that uses bandwith. 2nd of all, all incomming data is always passed through the hub and then to an unknown number of scripts. Impossible to address which script does something with it and which doesn't.

UwV

#3
Quote from: Mutor on 09 January, 2007, 23:59:10
Could we not at least pull the table from the rules page?

http://forum.ptokax.org/index.php?topic=6619#msg64851

i never got a reply to that one even  ;)
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

SMF spam blocked by CleanTalk