Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
app_profiling.h File Reference

Profiling, metrics, and performance monitoring sub-struct. More...

#include "fps.h"
#include "gpu_profiler.h"
#include "gpu_profiler_ui.h"
#include "gpu_usage.h"
#include "perf_mode.h"
#include "tracy_manager.h"
#include <stdbool.h>
#include "app_subsystem.h"
Include dependency graph for app_profiling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AppProfiling
 Profiling, metrics, and performance monitoring grouped together. More...
 

Macros

#define APP_PROFILING_DESCRIPTOR    {"profiling", app_profiling_subsys_init, app_profiling_subsys_cleanup}
 

Functions

void app_profiling_init (AppProfiling *prof, int width, int height)
 Initialize all profiling sub-systems to default state.
 
void app_profiling_cleanup (AppProfiling *prof)
 Release all profiling resources in reverse init order.
 
int app_profiling_subsys_init (struct App *app)
 
void app_profiling_subsys_cleanup (struct App *app)
 

Detailed Description

Profiling, metrics, and performance monitoring sub-struct.

Extracted from app.h to reduce include fan-out. All profiling-related types are grouped here so that app.h only needs a single #include "app_profiling.h".

Macro Definition Documentation

◆ APP_PROFILING_DESCRIPTOR

#define APP_PROFILING_DESCRIPTOR    {"profiling", app_profiling_subsys_init, app_profiling_subsys_cleanup}

Function Documentation

◆ app_profiling_cleanup()

void app_profiling_cleanup ( AppProfiling *  prof)

Release all profiling resources in reverse init order.

Parameters
profPointer to the profiling sub-struct.
Here is the call graph for this function:

◆ app_profiling_init()

void app_profiling_init ( AppProfiling *  prof,
int  width,
int  height 
)

Initialize all profiling sub-systems to default state.

Parameters
profPointer to the profiling sub-struct.
widthInitial viewport width (for Tracy screenshot buffer).
heightInitial viewport height.
Here is the call graph for this function:

◆ app_profiling_subsys_cleanup()

void app_profiling_subsys_cleanup ( struct App *  app)
Here is the call graph for this function:

◆ app_profiling_subsys_init()

int app_profiling_subsys_init ( struct App *  app)
Here is the call graph for this function: