Table of contents

Adding TorchRecord / NVTX markers


This documentation outlines the process of adding Torch Records and NVTX markers to your code using the nCompass SDK and VS Code extension. It provides a step-by-step guide for runtime injection without modifying the original codebase.

Why Runtime Injection 0:00

Use Cases 0:39

Step 1: Add regions in the extension 2:05

  1. Install the nCompass VS Code extension.
  2. Highlight the code region you want to profile.
  3. Click on the light bulb or (Ctrl/Cmd + '.') and select 'Add Region to Profile'.
  4. Choose 'Torch Record' to annotate the selected region.
  5. A configuration file (config.json) will be created in the .cache directory, storing the injection locations.

Step 2: Use our SDK 3:07

Step 3: Viewing the Results 4:02

Contributions and Future Development 4:19

https://www.loom.com/share/1e526ff43fa44bfcaebe18a6f56052ff