Flecs Get World Stats
flecs_get_world_statsRetrieve performance metrics like FPS, frame time, entity and table counts from a running FLECS application. Requires the stats module to be imported.
Instructions
[READ] Get world performance statistics from the FLECS stats module.
'metrics' maps names such as 'performance.fps', 'performance.frame_time', 'entities.count', 'tables.count', 'queries.system_count', 'commands.add_count' and 'memory.alloc_count' to {avg, min, max, brief}. Times are in seconds. Requires the FLECS application to import the stats module (FlecsStats); returns an explanatory error otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Sampling window: '1s', '1m', '1h', '1d' or '1w'. Each window holds 60 samples. | 1s |
| history | No | Return all 60 samples of the window (oldest first) instead of only the latest sample. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | ||
| history | Yes | ||
| metrics | Yes |