20 lines
1.1 KiB
JavaScript
20 lines
1.1 KiB
JavaScript
var os = this
|
|
|
|
os.platform[cell.DOC] = "Return a string with the underlying platform name, like 'Windows', 'Linux', or 'macOS'."
|
|
os.arch[cell.DOC] = "Return the CPU architecture string for this system (e.g. 'x64', 'arm64')."
|
|
os.totalmem[cell.DOC] = "Return the total system RAM in bytes."
|
|
os.freemem[cell.DOC] = "Return the amount of free system RAM in bytes, if known."
|
|
os.hostname[cell.DOC] = "Return the system's hostname, or an empty string if not available."
|
|
os.version[cell.DOC] = "Return the OS or kernel version string, if the platform provides it."
|
|
|
|
os.exit[cell.DOC] = "Exit the application with the specified exit code."
|
|
os.now[cell.DOC] = "Return current time (in seconds as a float) with high resolution."
|
|
|
|
os.power_state[cell.DOC] = "Return a string describing power status: 'on battery', 'charging', 'charged', etc."
|
|
|
|
os.on[cell.DOC] = "Register a global callback for certain engine-wide or system-level events."
|
|
os.rusage[cell.DOC] = "Return resource usage stats for this process, if the platform supports it."
|
|
os.mallinfo[cell.DOC] = "Return detailed memory allocation info (arena size, free blocks, etc.) on some platforms."
|
|
|
|
return os
|