A utility to read, merge, and slice log files for subsequent analysis in Tracy.
PS. To create your own converter for Tracy, press "Use this template" (above) -> "Create a new repository" and adapt src/converters.ts
.
To install in Visual Studio Code:
- Obtain the plugin
.vsix
file:- If you want to install the latest release, go to the Latest release and download the
vscode-tracy-csv-converter-X.X.X.vsix
file under Assests. - If you want to install a specific commit, click on the ✔️ next to the commit -> Details -> Summary -> under Artifacts, vscode-vsix and extract the downloaded
vscode-vsix.zip
.
- If you want to install the latest release, go to the Latest release and download the
- Open Visual Studio Code, in the side bar go to Extensions ->
···
(right top) -> Install from VSIX... -> open the downloadedvscode-tracy-csv-converter-X.X.X.vsix
. - To test, download the example, extract the zip and open it with Vistual Studio Code. Press "Help" (top bar) -> "Show All Commands" (or
CTRL
+SHIFT
+P
). Now there are two extra options.- Search for "Tracy CSV converter: open current document with Tracy". Press enter and select "Using standard converter". Tracy will now open.
- Search for "Tracy CSV converter: open multiple documents with Tracy". A new view will appear, where you can add files using a file selection dialog. Press "Merge & Open" to open Tracy.
- If you want to upgrade Tracy in the future, repeat the instructions above.
To develop Tracy CSV converter:
- Make sure that Node.js (version 18+ recommended) and Git are installed.
- Execute:
# Clone the repository git clone https://github.com/TNO/vscode-tracy-csv-converter.git cd vscode-tracy-csv-converter # Install dependencies npm ci # Open the repository in Visual Studio Code code .
- In Vistual Studio Code, go to Run (menu bar) -> Start Debugging. A new Visual Studio Code instance (Extension Development Host) will be started with Tracy CSV converter installed. To apply any code changes go to Run (menu bar) -> Restart Debugging.
- Code changes to the UI can be watched using
npm run watch-viewer
. - Linting is done via
npx eslint src
.
To create a new release, go to the CI GitHub action -> Run workflow -> adjust type accordingly -> Run workflow. Wait till build completes and add the release notes.