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.15.tar.gz (147.6 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.15-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncompass-0.1.15.tar.gz
  • Upload date:
  • Size: 147.6 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.15.tar.gz
Algorithm Hash digest
SHA256 89b1da58aa1199330ca4fa33c90261673151c8d7cdf776d4ebb120ac624612d4
MD5 9d19536848a04d4baada950f1d8144cb
BLAKE2b-256 55413e034efe6617272564b15090155997bd7698e7c7216e544e0a908f06b320

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncompass-0.1.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c60ce6fd4483368cf4ecad49ffec176b4633f14074a44a6cf71e78607f0e8b0e
MD5 69039d7b0d764413d9d47841cc2dc1ff
BLAKE2b-256 522d137bf25bace9ceb2fcab082dc912b8d8e7f50045e2fe4e65fa427ee35dc8

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