Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
GeodeCounters.h File Reference

Per-frame instrumentation counters for the Geode rendering backend. More...

#include <cstdint>
Include dependency graph for GeodeCounters.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::geode::GeodeCounters
 Steady-state resource-creation and submission counts for a single frame. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Detailed Description

Per-frame instrumentation counters for the Geode rendering backend.

The counters observe steady-state hot paths identified in design doc 0030 (geode_performance). They are the primary regression signal for the perf-optimization milestones: each later milestone tightens one or more of these ceilings, and GeodePerf_tests.cc asserts them.

Counters are free of cost when disabled — hot-path sites check a nullable pointer, so a renderer constructed without counters pays one null-pointer compare per increment site.