File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
pluggableWidgets/datagrid-web/src/features/data-export
shared/widget-plugin-grid/src/select-all Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ export class DSExportRequest {
114
114
}
115
115
116
116
send = ( ) : Promise < void > => {
117
+ performance . mark ( "DSExportRequest_send" ) ;
117
118
this . emitLoadStart ( ) ;
118
119
this . _status = "awaiting" ;
119
120
this . offset = 0 ;
@@ -230,6 +231,9 @@ export class DSExportRequest {
230
231
this . emitEnd ( ) ;
231
232
this . emitLoadEnd ( ) ;
232
233
this . dispose ( ) ;
234
+ performance . mark ( "DSExportRequest_end" ) ;
235
+ const measure = performance . measure ( "DSExportRequest" , "DSExportRequest_send" , "DSExportRequest_end" ) ;
236
+ console . debug ( `DSExportRequest: export took ${ ( measure . duration / 1000 ) . toFixed ( 2 ) } seconds` ) ;
233
237
}
234
238
235
239
private dispose ( ) : void {
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ export class SelectAllController implements ReactiveController {
112
112
this . abortController = new AbortController ( ) ;
113
113
const signal = this . abortController . signal ;
114
114
115
+ performance . mark ( "SelectAll_Start" ) ;
115
116
try {
116
117
this . emitter . dispatchEvent ( pe ( "loadstart" ) ) ;
117
118
let loading = true ;
@@ -142,6 +143,9 @@ export class SelectAllController implements ReactiveController {
142
143
this . locked = false ;
143
144
this . emitter . dispatchEvent ( pe ( "loadend" ) ) ;
144
145
this . abortController = undefined ;
146
+ performance . mark ( "SelectAll_End" ) ;
147
+ const measure1 = performance . measure ( "Measure1" , "SelectAll_Start" , "SelectAll_End" ) ;
148
+ console . debug ( `Data grid 2: select all took ${ ( measure1 . duration / 1000 ) . toFixed ( 2 ) } seconds` ) ;
145
149
}
146
150
}
147
151
You can’t perform that action at this time.
0 commit comments