@@ -840,19 +840,28 @@ export default {
840840 });
841841 }));
842842
843+ const t1 = performance .now ();
843844 ccService .getClient ().getFileCounts (this .runIds , this .reportFilter ,
844- this .cmpData , 0 , 0 , handleThriftError (fileCounts => {
845- console .log (" getFileCounts result:" , fileCounts);
846- console .log (" getFileCounts total:" ,
847- Object .values (fileCounts || {}).reduce ((sum , n ) => sum + n, 0 )
848- );
849- this .allReportsFileCounts = fileCounts;
845+ this .cmpData , 0 , 0 , handleThriftError (fileCounts => {
846+ console .log (" getFileCounts API time:" ,
847+ performance .now () - t1, " ms" );
848+ console .log (" getFileCounts result:" , fileCounts);
849+ console .log (" getFileCounts total:" ,
850+ Object .values (fileCounts || {})
851+ .reduce ((sum , n ) => sum + n, 0 )
852+ );
853+ this .allReportsFileCounts = fileCounts;
850854 }));
851855
852- ccService .getClient ().getRunResults (this .runIds , 0 , 0 , sortType,
856+ const t2 = performance .now ();
857+ ccService .getClient ().getRunResults (
858+ this .runIds , 0 , 0 , sortType,
853859 this .reportFilter , this .cmpData , getDetails,
854860 handleThriftError (reports => {
855- console .log (" getRunResults length:" , reports ? reports .length : 0 );
861+ console .log (" getRunResults API time:" ,
862+ performance .now () - t2, " ms" );
863+ console .log (" getRunResults length:" ,
864+ reports ? reports .length : 0 );
856865 this .allReportsRunResults = reports;
857866 }));
858867
0 commit comments