Skip to content

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.

Optick Integration

  1. Download Optick and put its src directory in a new Libraries/Optick folder relative to your project.
  2. 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);
  3. In your project's khafile.js, add the following entry before adding the Aura subproject:

    process.env["AURA_OPTICK_PATH"] = path.join(__dirname, project.localLibraryPath, 'Optick');
    Comment or remove this line to disable Optick in your hxcpp builds. If Optick is enabled, an AURA_WITH_OPTICK define is set.
Clone this wiki locally