This tool allows Cyberhaven to debug performance issues on Windows endpoints. It is meant to be run by Cyberhaven end users directly while reproducing the performance issue. Start running the tool, reproduce the performance problem, and then submit the trace file to Cyberhaven for analysis.

### There are two options available:
- Using Microsoft-provided tools. Use this option if you do not want to use the executables packaged by Cyberhaven and can install software on the machine.
- Without installation using our trace bundle (script + executables in archive). This is the recommended option since it does not require any installation.

### Using Windows SDK:
1. Install [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk) (the only option required is `Windows Performance Toolkit`)
2. Run Windows Performance Recorder with the only option: `CPU usage`


### Using Cyberhaven Trace bundle:
1. Download and unzip the [Cyberhaven Traces](https://storage.googleapis.com/files.cyberhaven.io/support/Cyberhaven%20Traces.zip) archive.
2. Open the extracted Cyberhaven Traces folder.
3. Run `trace.bat` file as Administrator.
4. Follow the instructions from the console.
5. Zip the `trace.etl` file created in the Cyberhaven Traces folder.
6. [Upload the zipped trace file](https://forms.gle/27F2LWXkur9b5yLJ6) -- `trace.etl` is at most 1GB and it typically is zipped into a ~150MB archive.

 