This project contains two Vulkan layers:
- Compile-time layer for measuring pipeline compilation times.
- Runtime layer for measuring pipeline execution times.
- Frame time layer for measuring time between calls to vkQueuePresentKHR, in nanoseconds.
The results are saved as CSV files.
The layers are considered experimental. We welcome contributions and suggestions for improvements; see docs/contributing.md.
Sample build instructions:
# Checkout the submodules.
git submodule update --init
# Build and install performance layers.
mkdir -p <BUILD_DIR> ; cd <BUILD_DIR>
cmake .. \
-GNinja \
-DCMAKE_C_COMPILER=<COMPILER> \
-DCMAKE_CXX_COMPILER=<COMPILER> \
-DCMAKE_BUILD_TYPE=<CONFIGURATION> \
-DCMAKE_INSTALL_PREFIX=run \
-DVULKAN_HEADERS_INSTALL_DIR=<PATH_TO_VULKAN_HEADERS_INSTALL> \
-DVULKAN_LOADER_GENERATED_DIR=<PATH_TO_VULKAN_LOADER>/loader/generated \
&& ninja \
&& ninja install
See docker/build.Dockerfile for detailed Ubuntu build instructions.
This is not an officially supported Google product. Support and/or new releases may be limited.