profiling_config.hpp File Reference

Macros

#define KZ_PROFILING_CATEGORY_STARTUP_AND_SHUTDOWN
 Startup and shutdown category measures the time used during application startup and shutdown. More...
 
#define KZ_PROFILING_CATEGORY_RUNNING_SAMPLE_BUFFER_SIZE
 Runtime category measures the time used by the functions which Kanzi runs in the main loop. More...
 
#define KZ_PROFILING_CATEGORY_RUNNING
 
#define KZ_PROFILING_CATEGORY_LOADING_SAMPLE_BUFFER_SIZE
 Resource loading category measures the time used by the functions Kanzi runs to load and deploy resources in an application. More...
 
#define KZ_PROFILING_CATEGORY_LOADING
 
#define KZ_PROFILING_CATEGORY_RENDERING_SAMPLE_BUFFER_SIZE
 Rendering category measures the time used to render each node to the screen. More...
 
#define KZ_PROFILING_CATEGORY_RENDERING
 

Macro Definition Documentation

#define KZ_PROFILING_CATEGORY_STARTUP_AND_SHUTDOWN

Startup and shutdown category measures the time used during application startup and shutdown.

This happens outside of the main loop. For example, use this category to measure the amount of time it takes to initialize subsystems and drivers at application startup, and the time it takes to uninitialize functions which clean up after the main loop terminates at shutdown.

#define KZ_PROFILING_CATEGORY_RUNNING_SAMPLE_BUFFER_SIZE

Runtime category measures the time used by the functions which Kanzi runs in the main loop.

For example, use this category to measure the amount of time it takes to calculate the layouts, run the animations, update the application state, and prepare the nodes for rendering.

#define KZ_PROFILING_CATEGORY_RUNNING
#define KZ_PROFILING_CATEGORY_LOADING_SAMPLE_BUFFER_SIZE

Resource loading category measures the time used by the functions Kanzi runs to load and deploy resources in an application.

During the resource loading the application uses a loader thread to get the data for the resource. When loading completes the main thread finalizes the resource by uploading it to the resource object. For example, when an application loads a texture, the loading part retrieves the texture data from http, file, or kzb URL, and the finalization part uploads the data to the texture surface and deploys the texture to the GPU.

#define KZ_PROFILING_CATEGORY_LOADING
#define KZ_PROFILING_CATEGORY_RENDERING_SAMPLE_BUFFER_SIZE

Rendering category measures the time used to render each node to the screen.

#define KZ_PROFILING_CATEGORY_RENDERING