File tree 3 files changed +10
-5
lines changed
src/qa/runner-assets/ruby
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ def report
133
133
aggregate . default = [ ] # dumb. group_by should provide this
134
134
135
135
corrected_time = ::Qa ::Time . now_f - @suite_start_time
136
+
137
+ @trace . emit_final_stats
138
+
136
139
emit (
137
140
'type' => 'final' ,
138
141
'time' => corrected_time ,
Original file line number Diff line number Diff line change @@ -1183,7 +1183,6 @@ def main(args)
1183
1183
trace_events = [ ]
1184
1184
qa_trace = ::Qa ::Trace . new ( Process . pid ) { |e | trace_events . push ( e ) }
1185
1185
trace_probes . each { |trace_probe | qa_trace . define_tracer ( trace_probe ) }
1186
- qa_trace . start
1187
1186
1188
1187
socket = ::Qa ::ClientSocket . connect ( args . shift )
1189
1188
@@ -1193,6 +1192,11 @@ def main(args)
1193
1192
worker_envs , initial_files = initial_config [ 'workerEnvs' ] , initial_config [ 'files' ]
1194
1193
passthrough = initial_config [ 'passthrough' ]
1195
1194
1195
+ if passthrough [ 'sampleStack' ]
1196
+ Qa ::Trace . enable_stackprof!
1197
+ end
1198
+ qa_trace . start
1199
+
1196
1200
# Delegate prefork actions.
1197
1201
@prefork . call ( initial_files )
1198
1202
@@ -1230,10 +1234,6 @@ def main(args)
1230
1234
Qa ::Stdcom . disable!
1231
1235
end
1232
1236
1233
- if passthrough [ 'sampleStack' ]
1234
- Qa ::Trace . enable_stackprof!
1235
- end
1236
-
1237
1237
case passthrough [ 'errorsCaptureLocals' ] . to_s
1238
1238
when 'true'
1239
1239
TracePoint . new ( :raise ) do |tp |
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ def tapout_before_suite(result)
47
47
end
48
48
49
49
def tapout_after_suite ( elapsed_time )
50
+ @trace . emit_final_stats
51
+
50
52
emit (
51
53
'type' => 'final' ,
52
54
'time' => elapsed_time ,
You can’t perform that action at this time.
0 commit comments