API Docs for: 2.0.0

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:
  • used <Number>
    • amount of memory used
  • free <Number>
    • amount of memory free
  • short <Boolean>
    • flag to request a short version of the string
getNextPowerOfTen( number )
public/admin/SAGE2_performance.js:410

Helper function to get the next power of ten closest to a number

Parameters:
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:
  • val <Number>
    • one part(of a total) for which percentage is to be computed
  • remaining <Number>
    • remaining part (of the total)
SAGE2_init( )
public/admin/SAGE2_performance.js:76

Entry point of the performance application

saveData( metric, data )
public/admin/SAGE2_performance.js:440

Saves metric data into current value placeholder and history list

Parameters:
  • metric <String>
    • metric for which data is being saved
  • data <Object>
    • current metric values obtained
setupListeners( wsio )
public/admin/SAGE2_performance.js:132

Place callbacks on various messages from the server

Parameters: