Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write user docs / examples #22

Open
Gankra opened this issue Apr 26, 2022 · 1 comment
Open

Write user docs / examples #22

Gankra opened this issue Apr 26, 2022 · 1 comment

Comments

@Gankra
Copy link
Contributor

Gankra commented Apr 26, 2022

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

@msirringhaus
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants