#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

#489 in Machine learning

Download history

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

~9–12MB
~239K SLoC