pub struct RunDir { /* private fields */ }Expand description
Dir with the results for an individual benchmarking run. I.e. one
level below a KeyDir.
Implementations§
Source§impl RunDir
impl RunDir
Sourcepub fn post_process_single(
&self,
evobench_log_path: Option<&Path>,
evaluating_benchmark_file_succeeded: impl FnOnce() -> Result<()>,
target_name: &ProperDirname,
standard_log_path: &Path,
run_config: &RunConfig,
no_stats: bool,
) -> Result<()>
pub fn post_process_single( &self, evobench_log_path: Option<&Path>, evaluating_benchmark_file_succeeded: impl FnOnce() -> Result<()>, target_name: &ProperDirname, standard_log_path: &Path, run_config: &RunConfig, no_stats: bool, ) -> Result<()>
Produce the “single” extract files, as well as other
configured derivatives. After the standard “single” extracts
succeeded, evaluating_benchmark_file_succeeded is run; it
should remove the file at evobench_log_path if this is the
initial run and evobench_log_path pointed to e.g. a
tmpfs. Pass a no-op if calling later on. If
evobench_log_path is None, then the standard location is
used. If no_summary_stats is true, skips Excel and
flamegraph generation for the evobench.log data (other
post-processing is still done, i.e. configured extractions)
Source§impl RunDir
impl RunDir
pub fn parent(&self) -> &Arc<KeyDir>
pub fn timestamp(&self) -> &DateTimeWithOffset
Sourcepub fn evobench_log_path(&self) -> PathBuf
pub fn evobench_log_path(&self) -> PathBuf
The path to the compressed evobench.log file
Sourcepub fn evobench_log_uncompressed_path(&self) -> PathBuf
pub fn evobench_log_uncompressed_path(&self) -> PathBuf
The same path as io_utils::zstd_file::decompressed_file_mmap
generates (the call to the aforementioned function happens in
a context outside the runner, hence can’t use this function
here)
Sourcepub fn bench_output_log_path(&self) -> PathBuf
pub fn bench_output_log_path(&self) -> PathBuf
The optional output location that target projects can use,
passed to it via the BENCH_OUTPUT_LOG env variable then
compressed/moved to this location.
Sourcepub fn standard_log_path(&self) -> PathBuf
pub fn standard_log_path(&self) -> PathBuf
The path to the compressed stdout/stderr output from the target application while running this benchmark.
Sourcepub fn append(&self, file_name: &ProperFilename) -> PathBuf
pub fn append(&self, file_name: &ProperFilename) -> PathBuf
Files below a RunDir are normal files (no special type, at least for now)
Sourcepub fn append_str(&self, file_name: &str) -> Result<PathBuf>
pub fn append_str(&self, file_name: &str) -> Result<PathBuf>
Same as append but returns an error if file_name cannot be a
ProperFilename. Only for files (subdirs would be via an
append_subdir_str method, but RunDirs have no subdirs,
currently.)
Trait Implementations§
Source§impl From<RunDir> for OutputSubdir
impl From<RunDir> for OutputSubdir
Source§impl ReplaceBasePath for RunDir
impl ReplaceBasePath for RunDir
fn replace_base_path(&self, base_path: Arc<Path>) -> Self
Auto Trait Implementations§
impl !Freeze for RunDir
impl RefUnwindSafe for RunDir
impl Send for RunDir
impl Sync for RunDir
impl Unpin for RunDir
impl UnwindSafe for RunDir
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);