rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
panel_perf.h File Reference

The console's measurements of the panel itself: PSRAM (pseudo-static RAM) speed at start-up, the frame times, and every task's stack and the internal heap at their lowest. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define PERF_PROBE_CLEARS   4u
 The clears the start-up probe times, after one that is not timed.

Functions

static uint32_t perf_now_us (void)
 Nothing: built without RCBENCH_PERF_LOG.
static void perf_probe_psram (void)
 Nothing: built without RCBENCH_PERF_LOG.
static void perf_frame (int screen, uint32_t draw_us, bool flip_timed_out, bool quiet)
 Nothing: built without RCBENCH_PERF_LOG.

Detailed Description

The console's measurements of the panel itself: PSRAM (pseudo-static RAM) speed at start-up, the frame times, and every task's stack and the internal heap at their lowest.

Built with the option RCBENCH_PERF_LOG, ON by default (firmware/panel/CMakeLists.txt). Built without it,

idf.py -D RCBENCH_PERF_LOG=OFF build

every call below is an empty inline function, panel_perf.c is not compiled, and the panel prints none of these lines and runs none of their code. docs/Performance.md names the lines and the tables they fill.

SPDX-License-Identifier: MIT

Function Documentation

◆ perf_frame()

void perf_frame ( int screen,
uint32_t draw_us,
bool flip_timed_out,
bool quiet )
inlinestatic

Nothing: built without RCBENCH_PERF_LOG.

Parameters
screenUnused.
draw_usUnused.
flip_timed_outUnused.
quietUnused.

◆ perf_now_us()

uint32_t perf_now_us ( void )
inlinestatic

Nothing: built without RCBENCH_PERF_LOG.

Returns
0.