8000 Write user docs / examples · Issue #22 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

Write user docs / examples #22

Open

Description

@Gankra

Some folks have noted interest in using this but I have no idea what to tell them to even do.

Activity

  1. msirringhaus commented on Apr 28, 2022

    @msirringhaus
    Collaborator

    For Linux at least it's basically these functions: https://github.com/rust-minidump/minidump-writer/blob/main/src/linux/minidump_writer.rs#L135-L212

    So

    let res = MinidumpWriter::new(pid, tid)
                               // ... some options, if you want, like:
                               .set_minidump_size_limit(my_limit)
                               // ... maybe some more options ...
                               .dump(destination)?;
    

    This will write the resulting dump to destination but also returns a Vec<u8>-copy of it in memory to res.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0