List per-tick metric rows
/metrics/framesReturns the retained ticks oldest first as NDJSON: one JSON object per line. Each row carries the tick number, the renderer frame the tick submitted (the same number screenshots report, or null when the tick rendered nothing), the wall-clock time since start and the frame delta dt in milliseconds, whether the tick could be presented, and cpu and gpu objects of metric name to milliseconds that list only what the tick measured. Pass the last tick you saw as since to read only new rows.
Query Parameters
Only ticks after this tick number.
0 <= valueWhen true, only ticks in which a window acquired a swapchain image, so the frame could reach the screen. Ticks of a hidden or occluded window present nothing and skew timings.
Keep only this many of the newest matching rows.
0 <= valueResponse Body
application/x-ndjson
text/plain
text/plain
curl -X GET "https://example.com/metrics/frames""{\"tick\":610,\"frame\":598,\"time\":10412.3,\"dt\":16.67,\"presented\":true,\"cpu\":{\"GraphicsApplication::tick\":3.12,\"Renderer::prepare\":1.9},\"gpu\":{\"frame\":5.4,\"scene.VisibilityPipelineManager\":3.8,\"stage.shadow-maps\":0.9,\"stage.material-evaluation\":1.2,\"pass.Bloom\":0.41}}\n{\"tick\":611,\"frame\":599,\"time\":10429.0,\"dt\":16.67,\"presented\":true,\"cpu\":{\"GraphicsApplication::tick\":3.08,\"Renderer::prepare\":1.88},\"gpu\":{}}\n"