Profile a Game¶
Enable profiling:
"profiler": {
"enabled": True,
}
Run the actual workload you care about.
On exit Tatuy writes:
.tatuy/profiles/latest.json
Open it:
poetry run python -m tatuy_profiler .tatuy/profiles/latest.json
When diagnosing performance:
- inspect slow frames
- find dominant spans
- inspect metrics
- identify whether the cost is game-specific or reusable engine infrastructure
- optimize only after identifying the actual bottleneck