mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Rename peak memory metric to memory_peak_resident
This commit is contained in:
1 parent
0d86e78ede
commit
95118147af
10 files changed
+57
-54
No files matched your search
@@ -277,7 +277,7 @@ impl Executor for ShellExecutor<'_> {
|
||||
time_wall_clock: measurements.time_wall_clock_mean(),
|
||||
time_user: measurements.time_user_mean(),
|
||||
time_system: measurements.time_system_mean(),
|
||||
peak_memory_usage: None,
|
||||
memory_peak_resident: None,
|
||||
exit_status: ExitStatus::default(),
|
||||
});
|
||||
|
||||
@@ -335,7 +335,7 @@ impl Executor for MockExecutor {
|
||||
time_wall_clock: Self::extract_time(command.get_command_line()),
|
||||
time_user: Time::zero(),
|
||||
time_system: Time::zero(),
|
||||
peak_memory_usage: Some(Information::zero()),
|
||||
memory_peak_resident: Some(Information::zero()),
|
||||
exit_status,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ pub struct Measurement {
|
||||
skip_serializing_if = "Option::is_none",
|
||||
serialize_with = "serialize_optional_information"
|
||||
)]
|
||||
pub peak_memory_usage: Option<Information>,
|
||||
pub memory_peak_resident: Option<Information>,
|
||||
|
||||
// The exit status of the process
|
||||
#[serde(rename = "exit_code", serialize_with = "serialize_exit_status")]
|
||||
|
||||
@@ -215,7 +215,7 @@ fn scheduler_basic() -> Result<()> {
|
||||
time_system:
|
||||
value: 0
|
||||
unit: second
|
||||
peak_memory_usage:
|
||||
memory_peak_resident:
|
||||
value: 0
|
||||
unit: byte
|
||||
exit_code: 0
|
||||
@@ -228,7 +228,7 @@ fn scheduler_basic() -> Result<()> {
|
||||
time_system:
|
||||
value: 0
|
||||
unit: second
|
||||
peak_memory_usage:
|
||||
memory_peak_resident:
|
||||
value: 0
|
||||
unit: byte
|
||||
exit_code: 0
|
||||
@@ -243,7 +243,7 @@ fn scheduler_basic() -> Result<()> {
|
||||
time_system:
|
||||
value: 0
|
||||
unit: second
|
||||
peak_memory_usage:
|
||||
memory_peak_resident:
|
||||
value: 0
|
||||
unit: byte
|
||||
exit_code: 0
|
||||
@@ -256,7 +256,7 @@ fn scheduler_basic() -> Result<()> {
|
||||
time_system:
|
||||
value: 0
|
||||
unit: second
|
||||
peak_memory_usage:
|
||||
memory_peak_resident:
|
||||
value: 0
|
||||
unit: byte
|
||||
exit_code: 0
|
||||
|
||||
Reference in new issue
Block a user