Flecs Get Pipeline Stats
flecs_get_pipeline_statsRetrieve per-system timing statistics from the FLECS stats module to analyze pipeline performance, including sync points, with configurable sampling and history.
Instructions
[READ] Get per-system timing statistics from the FLECS stats module.
'entries' contains one object per system: 'name', 'disabled', 'time_spent' and (for non-task systems) 'matched_entity_count' and 'matched_table_count', each metric as {avg, min, max}. With a pipeline, sync points ('multi_threaded', 'immediate', 'time_spent', 'commands_enqueued') are interleaved in execution order. Times are in seconds. Requires the stats module (FlecsStats).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "flecs_get_pipeline_stats"
}
}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. | |
| pipeline | No | Dotted path of a pipeline, e.g. 'flecs.pipeline.BuiltinPipeline', to get its systems in execution order including sync points. Omit to get all systems (unordered). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | ||
| entries | Yes | ||
| history | Yes | ||
| pipeline | Yes |