UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

56 lines (27 loc) 897 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Telemetry](./server.telemetry.md) &gt; [getProcessStats](./server.telemetry.getprocessstats.md) ## Telemetry.getProcessStats() method Gets current Node.js process memory and performance statistics. **Signature:** ```typescript static getProcessStats(asMeasurement?: boolean): Record<string, any>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> asMeasurement </td><td> boolean </td><td> _(Optional)_ Whether to return data in Sentry measurement format with units. </td></tr> </tbody></table> **Returns:** Record&lt;string, any&gt; Process statistics including heap usage, RSS memory, and capacity metrics.