Skip to main content

Profiling and trace analysis SDK

Project description

nCompass Python SDK

PyPI Downloads License Python

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 ncompasslib or pydantic, ensure that:

  1. You are running Python 3.10+
  2. You have Pydantic>=2.0 installed

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.

Online Resources

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncompass-0.1.14.tar.gz (146.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncompass-0.1.14-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file ncompass-0.1.14.tar.gz.

File metadata

  • Download URL: ncompass-0.1.14.tar.gz
  • Upload date:
  • Size: 146.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ncompass-0.1.14.tar.gz
Algorithm Hash digest
SHA256 5110a70b63b9166608dac9ae74a73dcd3f8dfaa8b87a3e458364473adf21614b
MD5 19bb20efd0fa79d3affeec73ef8666c2
BLAKE2b-256 8af776a80ee6da7895824497def4547fd9b71ec7b6a8bfcb5db95fc86523b4a1

See more details on using hashes here.

File details

Details for the file ncompass-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: ncompass-0.1.14-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

Hashes for ncompass-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 4c54e0bf1609a0138dfdfe7baffa1d64820b0b1687dbb4bba9fc7665d5180cfb
MD5 41e0c6f73d8f9a4ca3e0799cf38e412a
BLAKE2b-256 5b1348b8cd9050f88ba9c6c2c94fd84ba3df5636060d984a3101091a34c6d6a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page