-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a214786
commit 1146268
Showing
5 changed files
with
307 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
use std::path::PathBuf; | ||
|
||
#[derive(Clone)] | ||
#[derive(Clone, buildstructor::Builder)] | ||
#[non_exhaustive] // Prevent direct construction. | ||
pub struct PerfOptions { | ||
pub output_file: PathBuf, | ||
pub frequency: u32, | ||
pub fold_options: Option<inferno::collapse::perf::Options>, | ||
// This type is super annoying and isn't `clone` and has a lifetime... so wrap in fn pointer for now. | ||
pub flamegraph_options: Option<fn() -> inferno::flamegraph::Options<'static>>, | ||
} |
Oops, something went wrong.