#tracing #ai #sdk #segfault

segfaultai

Segfault.ai Tracing SDK

6 releases (2 stable)

2024.1.23122245-staging Jan 23, 2024
2024.1.6023801 Jan 6, 2024

#338 in Machine learning

Download history 2/week @ 2024-09-30

59 downloads per month

Custom license

7KB
107 lines

Segfault.ai SDK for Rust

This is the Segfault.ai SDK for Rust.

Installation

Add this to your Cargo.toml:

[dependencies]
segfaultai = "*"

Usage

fn main() {
    // Initialize the sdk
    segfaultai::init();

    // Create your gstreamer pipeline
    let pipeline = gstreamer::Pipeline::new("my-pipeline");

    // Start tracing the pipeline with some metadata
    segfaultai::trace_start(&pipeline, &[("key", "value")]);

    // Do stuff...

    // Stop tracing the pipeline
    segfaultai::trace_stop(&pipeline);

    // Gracefully shutdown the sdk
    segfaultai::shutdown();
}

Dependencies

~8–11MB
~228K SLoC