-
Notifications
You must be signed in to change notification settings - Fork 3
Profiling
Moritz Brückner edited this page Aug 13, 2022
·
2 revisions
Aura comes with a small utility class (source code and API) for profiling the code. For now, this class is limited to the hxcpp target where it provides some bindings for the Optick profiler.
- Download Optick and put its
src
directory in a newLibraries/Optick
folder relative to your project. - In that folder, create a kincfile.js and copy the following code to it:
let project = new Project("Optick"); project.addFile("src/**"); project.addIncludeDir("src"); project.addDefine("OPTICK_ENABLE_GPU=0"); resolve(project);
- In your project's khafile.js, add the following entry before adding the Aura subproject:
Comment or remove this line to disable Optick in your hxcpp builds. If Optick is enabled, anprocess.env["AURA_OPTICK_PATH"] = path.join(__dirname, project.localLibraryPath, 'Optick');
AURA_WITH_OPTICK
define is set.