Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::browser::BrowserGpuOwnerDispatchTotals Struct Reference

Running totals of cross-thread owner dispatches from every client thread. Owner-local calls are excluded. Each field wraps or saturates as the matching __donnerReadGpuOwnerWaitStats field. More...

#include "donner/gpu/browser/BrowserGpuOwner.h"

Public Attributes

std::uint32_t requested = 0
 Dispatches requested; each blocks its calling thread until the owner has run it.
std::uint32_t waitSliceTimeouts = 0
 One-millisecond wait slices that expired while a dispatch was still pending.
std::uint32_t dispatchWaitUs = 0
 Saturating wall time requesting threads spent blocked on dispatches, in microseconds.
std::uint32_t requestedByCallingThread = 0
 Dispatches requested by the thread reading the totals. Thread-local, so it wraps independently of requested.
std::array< std::uint32_t, kBrowserGpuOperationKindCount > requestedByKind {}
 Dispatches requested from every client thread, indexed by BrowserGpuOperationKind.
std::uint32_t deliveryUs = 0
 From the request until the owner received it: the owner was busy elsewhere or waking.
std::uint32_t ownerQueueUs = 0
 From the owner's receipt until execution started: queued behind an active canvas frame, a running batch, the inline budget or earlier requests.
std::uint32_t executeUs = 0
 Execution of the dispatched operations on the owner.
std::uint32_t completionWakeUs = 0
 From the owner's completion until the requesting thread observed it.
std::array< std::uint32_t, kBrowserGpuOwnerStartLatencyBucketUpperUs.size()+1 > startLatencyBuckets {}
 Completed dispatches by request-to-start latency (delivery plus owner queue), bucketed by kBrowserGpuOwnerStartLatencyBucketUpperUs with a final unbounded bucket.
std::uint32_t canvasFrameActiveUs = 0
 Saturating owner time with an active canvas frame, in microseconds, added when each canvas frame ends. No inline or pulse dispatch starts then; the owner still runs requests from its runtime wait pump when the frame blocks.
std::uint32_t canvasFrames = 0
 Canvas frames that ended.
std::uint32_t receivedDuringCanvasFrame = 0
 Requests the owner received while a canvas frame was active. The owner receives requests then only inside a runtime wait, whose pump runs them at once, so these add little owner queue time.

Detailed Description

Running totals of cross-thread owner dispatches from every client thread. Owner-local calls are excluded. Each field wraps or saturates as the matching __donnerReadGpuOwnerWaitStats field.

Member Data Documentation

◆ canvasFrameActiveUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::canvasFrameActiveUs = 0

Saturating owner time with an active canvas frame, in microseconds, added when each canvas frame ends. No inline or pulse dispatch starts then; the owner still runs requests from its runtime wait pump when the frame blocks.

◆ canvasFrames

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::canvasFrames = 0

Canvas frames that ended.

◆ completionWakeUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::completionWakeUs = 0

From the owner's completion until the requesting thread observed it.

◆ deliveryUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::deliveryUs = 0

From the request until the owner received it: the owner was busy elsewhere or waking.

◆ dispatchWaitUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::dispatchWaitUs = 0

Saturating wall time requesting threads spent blocked on dispatches, in microseconds.

◆ executeUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::executeUs = 0

Execution of the dispatched operations on the owner.

◆ ownerQueueUs

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::ownerQueueUs = 0

From the owner's receipt until execution started: queued behind an active canvas frame, a running batch, the inline budget or earlier requests.

◆ receivedDuringCanvasFrame

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::receivedDuringCanvasFrame = 0

Requests the owner received while a canvas frame was active. The owner receives requests then only inside a runtime wait, whose pump runs them at once, so these add little owner queue time.

◆ requested

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::requested = 0

Dispatches requested; each blocks its calling thread until the owner has run it.

◆ requestedByCallingThread

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::requestedByCallingThread = 0

Dispatches requested by the thread reading the totals. Thread-local, so it wraps independently of requested.

◆ requestedByKind

std::array<std::uint32_t, kBrowserGpuOperationKindCount> donner::gpu::browser::BrowserGpuOwnerDispatchTotals::requestedByKind {}

Dispatches requested from every client thread, indexed by BrowserGpuOperationKind.

◆ startLatencyBuckets

std::array<std::uint32_t, kBrowserGpuOwnerStartLatencyBucketUpperUs.size() + 1> donner::gpu::browser::BrowserGpuOwnerDispatchTotals::startLatencyBuckets {}

Completed dispatches by request-to-start latency (delivery plus owner queue), bucketed by kBrowserGpuOwnerStartLatencyBucketUpperUs with a final unbounded bucket.

◆ waitSliceTimeouts

std::uint32_t donner::gpu::browser::BrowserGpuOwnerDispatchTotals::waitSliceTimeouts = 0

One-millisecond wait slices that expired while a dispatch was still pending.


The documentation for this struct was generated from the following file: