File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,21 @@ fn generate_thread_to_collapsed_thread_mapping(
116
116
thread_to_collapsed_thread
117
117
}
118
118
119
+ fn get_args ( full_event : & analyzeme:: Event ) -> Option < FxHashMap < String , String > > {
120
+ if !full_event. additional_data . is_empty ( ) {
121
+ Some (
122
+ full_event
123
+ . additional_data
124
+ . iter ( )
125
+ . enumerate ( )
126
+ . map ( |( i, arg) | ( format ! ( "arg{}" , i) . to_string ( ) , arg. to_string ( ) ) )
127
+ . collect ( ) ,
128
+ )
129
+ } else {
130
+ None
131
+ }
132
+ }
133
+
119
134
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
120
135
let opt = Opt :: from_args ( ) ;
121
136
@@ -151,7 +166,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
151
166
thread_id : * thread_to_collapsed_thread
152
167
. get ( & event. thread_id )
153
168
. unwrap_or ( & event. thread_id ) ,
154
- args : None ,
169
+ args : get_args ( & full_event ) ,
155
170
} ;
156
171
seq. serialize_element ( & crox_event) ?;
157
172
}
You can’t perform that action at this time.
0 commit comments