15#if defined(PULP_GPU_RUNTIME)
19#include <gpu_runtime/gpu_startup_report.hpp>
25using gpu_runtime::adapter_type_label;
26using gpu_runtime::format_gpu_adapter_line;
27using gpu_runtime::format_gpu_diagnostics_line;
28using gpu_runtime::format_gpu_startup_line;
29using gpu_runtime::GpuStartupReport;
30using gpu_runtime::log_gpu_diagnostics_summary;
AdapterType
Native adapter type reported by Dawn/WebGPU.
Definition gpu_surface.hpp:117
Definition gpu_fwd.hpp:31
const char * adapter_type_label(GpuSurface::AdapterType type) noexcept
Stable lowercase label for an adapter type: "integrated", "discrete", "cpu", or "unknown".
std::string format_gpu_diagnostics_line(const SkiaLogBridgeState &bridge, const GpuDiagnosticsStats &stats)
One line saying whether the Skia log bridge is wired and what reached it, e.g.
@ info
Definition gpu_diagnostics.hpp:56
std::string format_gpu_startup_line(const GpuStartupReport &report)
One line of stage timings in milliseconds with one decimal, e.g.
void log_gpu_diagnostics_summary()
Log the GpuDiagnostics line for this process at info level, preceded by skia: N more records suppress...
std::string format_gpu_adapter_line(const GpuSurface::AdapterInfo &info)
One line naming the adapter a surface came up on, e.g.
Counters that separate "the sink was never called" from "the sink was calledbut this build compiles t...
Definition gpu_diagnostics.hpp:83
Bring-up stage timings from GpuSurface::initialize() plus the two stages the owning host measures aro...
Definition gpu_startup_report.hpp:55
GpuSurface::StartupTimings surface
Definition gpu_startup_report.hpp:56
double graphite_ms
SkiaSurface (Graphite context) creation on the shared Dawn device.
Definition gpu_startup_report.hpp:58
double first_frame_ms
From the start of GPU bring-up to the end of the first rendered frame (submitted and presented,...
Definition gpu_startup_report.hpp:61
Definition gpu_surface.hpp:136
Wall-clock milliseconds spent in each stage of initialize(), measured with a monotonic clock.
Definition gpu_surface.hpp:243
Definition gpu_diagnostics.hpp:115