Class SAGE2_Performance
Class defined in:public/admin/SAGE2_performance.js:13
SAGE2 Performance monitoring display
formatMemoryString
( used, free, short
)
public/admin/SAGE2_performance.js:464
Helper function to format memory usage info in a string
Parameters:getNextPowerOfTen
( number
)
public/admin/SAGE2_performance.js:410
Helper function to get the next power of ten closest to a number
Parameters:-
number
<Number>- some number
getNiceNumber
( number, giga
)
public/admin/SAGE2_performance.js:385
Helper function to convert a number to shorter format with appropriate suffix determined (K for Kilo and so on)
Parameters:getPercentString
( val, remaining
)
public/admin/SAGE2_performance.js:424
Helper function to get a percentage value
Parameters:saveData
( metric, data
)
public/admin/SAGE2_performance.js:440
Saves metric data into current value placeholder and history list
Parameters:setupListeners
( wsio
)
public/admin/SAGE2_performance.js:132
Place callbacks on various messages from the server
Parameters:-
wsio
<Object>websocket