@@ -24,6 +24,7 @@ const { getStackTraceUrl } = require('../helpers/sync/syncSpecsLogs');
24
24
25
25
module . exports = function run ( args , rawArgs ) {
26
26
27
+ markBlockStart ( 'preBuild' ) ;
27
28
// set debug mode (--cli-debug)
28
29
utils . setDebugMode ( args ) ;
29
30
@@ -185,6 +186,8 @@ module.exports = function run(args, rawArgs) {
185
186
logger . debug ( "Started build creation" ) ;
186
187
markBlockStart ( 'createBuild' ) ;
187
188
return build . createBuild ( bsConfig , zip ) . then ( function ( data ) {
189
+ markBlockEnd ( 'preBuild' ) ;
190
+ markBlockStart ( 'buildProcessing' ) ;
188
191
logger . debug ( "Completed build creation" ) ;
189
192
markBlockEnd ( 'createBuild' ) ;
190
193
markBlockEnd ( 'total' ) ;
@@ -216,6 +219,8 @@ module.exports = function run(args, rawArgs) {
216
219
if ( args . sync ) {
217
220
logger . debug ( "Started polling build status from BrowserStack" ) ;
218
221
syncRunner . pollBuildStatus ( bsConfig , data , rawArgs , buildReportData ) . then ( async ( exitCode ) => {
222
+ markBlockEnd ( 'buildProcessing' ) ;
223
+ markBlockStart ( 'postBuild' ) ;
219
224
logger . debug ( "Completed polling of build status" ) ;
220
225
221
226
// stop the Local instance
@@ -234,6 +239,7 @@ module.exports = function run(args, rawArgs) {
234
239
// Generate custom report!
235
240
reportGenerator ( bsConfig , data . build_id , args , rawArgs , buildReportData , function ( ) {
236
241
utils . sendUsageReport ( bsConfig , args , `${ message } \n${ dashboardLink } ` , Constants . messageTypes . SUCCESS , null , buildReportData , rawArgs ) ;
242
+ markBlockEnd ( 'postBuild' ) ;
237
243
utils . handleSyncExit ( exitCode , data . dashboard_url ) ;
238
244
} ) ;
239
245
} else {
0 commit comments