Profiling a Python library written in Rust (Maturin)

This page summarizes the projects mentioned and recommended in the original post on /r/learnrust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • coz-rs

    Discontinued Rust support for the coz Causal profiler, code now lives upstream -- https://github.com/plasma-umass/coz

  • I'm currently developing a Python library in Rust using Maturin and am at a point where I want to profile it. I've tried doing that using coz however I can't get it to actually record any data, probably because the Rust code is being called from Python. I really want to avoid rewriting a usage example in Rust.

  • py-spy

    Sampling profiler for Python programs

  • Might be worth raising an issue on py-spy (a python profiler written in rust which "supports profiling native python extensions written in languages like C/C++ or Cython" to see if that can close the loop.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts