Export exit codes to JSON output

This commit is contained in:
Jordi Chauzi authored and David Peter committed 2021-05-10 14:55:04 +02:00
1 parent 9e57bf613c
commit 3fcc6a187b
7 files changed
+53 -6

No files matched your search

+5
View File
@@ -268,6 +268,9 @@ pub struct BenchmarkResult {
#[serde(skip_serializing_if = "Option::is_none")]
pub times: Option<Vec<Second>>,
/// All run exit codes
pub exit_codes: Vec<i32>,
/// Any parameter values used
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
pub parameters: BTreeMap<String, String>,
@@ -285,6 +288,7 @@ impl BenchmarkResult {
min: Second,
max: Second,
times: Vec<Second>,
exit_codes: Vec<i32>,
parameters: BTreeMap<String, String>,
) -> Self {
BenchmarkResult {
@@ -297,6 +301,7 @@ impl BenchmarkResult {
min,
max,
times: Some(times),
exit_codes,
parameters,
}
}