@@ -26,9 +26,9 @@ pub enum Commands {
26
26
#[ clap( long = "rust-ver" ) ]
27
27
rustc : String ,
28
28
29
- /// The path of output file
29
+ /// The path of output directory
30
30
#[ clap( long = "out-path" , default_value = "results" ) ]
31
- out_path : PathBuf ,
31
+ out_dir : PathBuf ,
32
32
} ,
33
33
34
34
/// Merge runtime data of the same rustc version from different benchmark groups
@@ -42,6 +42,25 @@ pub enum Commands {
42
42
#[ clap( long = "rust-ver" ) ]
43
43
rustc : String ,
44
44
45
+ /// The path of output dir
46
+ #[ clap( long = "out-path" , default_value = "results" ) ]
47
+ out_dir : PathBuf ,
48
+ } ,
49
+
50
+ /// Compare 2 different datas on one metric and plot boxplot of their change rate.
51
+ DataCompare {
52
+ /// The first data input file.
53
+ #[ clap( long = "data-1" ) ]
54
+ data_a : PathBuf ,
55
+
56
+ /// The second data input file.
57
+ #[ clap( long = "data-2" ) ]
58
+ data_b : PathBuf ,
59
+
60
+ /// The metric that needs comparison.
61
+ #[ clap( long = "metric" ) ]
62
+ metric : String ,
63
+
45
64
/// The path of output file
46
65
#[ clap( long = "out-path" , default_value = "results" ) ]
47
66
out_path : PathBuf ,
@@ -105,6 +124,16 @@ pub enum Commands {
105
124
merged_metric : String ,
106
125
} ,
107
126
127
+ /// Calculate statistics of a table-data fmt file.
128
+ CalculateTableStats {
129
+ /// The path of table data fmt file.
130
+ #[ clap( long = "table-data" ) ]
131
+ table_data_path : PathBuf ,
132
+ /// The path of output file.
133
+ #[ clap( long = "out-path" ) ]
134
+ out_path : PathBuf ,
135
+ } ,
136
+
108
137
/// Merge compile-time stats into a table data fmt file.
109
138
MergeCompileTimeStatsToTable {
110
139
/// The path of table data fmt file.
@@ -121,6 +150,21 @@ pub enum Commands {
121
150
new_metrics : String ,
122
151
} ,
123
152
153
+ /// Merge runtime stats into a table data fmt file.
154
+ MergeRuntimeStatsToTable {
155
+ /// The path of table data fmt file.
156
+ #[ clap( long = "table-data" ) ]
157
+ table_data_path : PathBuf ,
158
+ /// The path of runtime stats fmt file.
159
+ #[ clap( long = "stats" ) ]
160
+ stats_path : PathBuf ,
161
+ /// The path of output file.
162
+ #[ clap( long = "out-path" ) ]
163
+ out_path : PathBuf ,
164
+ /// Metrics merged from stats fmt file. Use ',' to concanate the metrics.
165
+ #[ clap( long = "new_metrics" ) ]
166
+ new_metrics : String ,
167
+ } ,
124
168
/// Do pca analysis on a table fmt file.
125
169
PcaAnalysis {
126
170
/// The path of table data fmt file.
@@ -133,4 +177,15 @@ pub enum Commands {
133
177
#[ clap( long = "max-component-num" ) ]
134
178
max_component_num : u32 ,
135
179
} ,
180
+
181
+ /// Normalize statistic by wall-time.
182
+ NormalizeStat {
183
+ /// The stat fmt file.
184
+ #[ clap( long = "stats" ) ]
185
+ stats : PathBuf ,
186
+
187
+ /// The output path.
188
+ #[ clap( long = "out-path" ) ]
189
+ out_path : PathBuf ,
190
+ } ,
136
191
}
0 commit comments