Profiling and trace analysis SDK
Project description
nCompass Python SDK
The Python SDK powering our Performance Optimization IDE—bringing seamless profiling and performance analysis directly into your development workflow.
Built by nCompass Technologies.
What are we building?
We're building a Performance Optimization IDE that improves developer productivity by 100x when profiling and analyzing performance of GPU and other accelerator systems. Our IDE consists of two integrated components:
🎯 VSCode Extension
Unify your profiling workflow with seamless integration between traces and codebases:
- No more context switching — profile, analyze, and optimize all in one place
- Zero-copy workflow — visualize traces directly in your editor without transferring files between machines
- Code-to-trace navigation — jump seamlessly between your codebase and performance traces
- AI-powered insights — get intelligent suggestions for performance improvements and bottleneck identification
⚙️ SDK (this repo)
The Python SDK that powers the extension with powerful automation features:
- Zero-instrumentation profiling — AST-level code injection means you never need to manually add profiling statements
- Universal trace conversion — convert traces from nsys and other formats to Chrome traces for integrated visualization
- Extensible architecture — built for customization and extension (contributions welcome!)
Installation
Install via pip:
pip install ncompass
⚠️ Troubleshooting: If you run into issues with
ncompassliborpydantic, ensure that:
- You are running Python 3.10+
- You have
Pydantic>=2.0installed
Examples
Refer to our open source GitHub repo for examples. Our examples are built to work together with the VSCode extension. For instance, with adding tracepoints to the code, you can add/remove tracepoints using the extension and then run profiling using our examples.
- Basic TorchProfile Example
- Nsight Systems Examples
- Running remotely on Modal
- Fast conversion of .nsys-rep to .json.gz
Online Resources
- 🌐 Website: ncompass.tech
- 📚 Documentation: Documentation
- 💬 Community: community.ncompass.tech
- 🐛 Issues: GitHub Issues
- __ Discord: Join our discord
Requirements
- Python 3.10 or higher
- Nsight Systems CLI installed (for .nsys-rep to .json.gz conversion features)
Building without packaging
Because of Rust dependencies for the fast .nsys-rep to .json.gz converter, -e (editable) builds
aren't setup. To build you have to just pip install ./ and use the package from your python env.
To run tests, run the following:
nix develop
pytest tests/ # python tests
cd ncompass_rust/trace_converters/
cargo test --target=x86_64-unknown-linux-musl # rust tests
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Made with ⚡ by nCompass Technologies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ncompass-0.1.12.tar.gz.
File metadata
- Download URL: ncompass-0.1.12.tar.gz
- Upload date:
- Size: 150.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a6e8ccd954082ea7a0b9062c0ae17475cf9ba9f80e733953f26e2eefb08202
|
|
| MD5 |
1e6816c6ed4b7ed26a3f4994942b81cb
|
|
| BLAKE2b-256 |
1e21303dea9eb700ac62fc01c582bce013f3eb0fea5b18b72bd2b1de99a7eac1
|
File details
Details for the file ncompass-0.1.12-py3-none-any.whl.
File metadata
- Download URL: ncompass-0.1.12-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d1d6bc3b715c20da648ffff405ef1893548373e12939e9f6b9647985bca1d8
|
|
| MD5 |
4af86e5006f617edebdb51839d4f1b3f
|
|
| BLAKE2b-256 |
4fe5c1fcf10cb1255d61c1e82c7aedea42de02bc030b3d8f2c1f3ae214e8c310
|