@@ -857,10 +857,10 @@ namespace ts {
857857 function getSourceFile ( fileName : string , languageVersion : ScriptTarget , onError ?: ( message : string ) => void ) : SourceFile {
858858 let text : string ;
859859 try {
860- performance . mark ( "ioReadStart " ) ;
860+ performance . mark ( "beforeIORead " ) ;
861861 text = sys . readFile ( fileName , options . charset ) ;
862- performance . mark ( "ioReadEnd " ) ;
863- performance . measure ( "I/O Read" , "ioReadStart " , "ioReadEnd " ) ;
862+ performance . mark ( "afterIORead " ) ;
863+ performance . measure ( "I/O Read" , "beforeIORead " , "afterIORead " ) ;
864864 }
865865 catch ( e ) {
866866 if ( onError ) {
@@ -927,7 +927,7 @@ namespace ts {
927927
928928 function writeFile ( fileName : string , data : string , writeByteOrderMark : boolean , onError ?: ( message : string ) => void ) {
929929 try {
930- performance . mark ( "ioWriteStart " ) ;
930+ performance . mark ( "beforeIOWrite " ) ;
931931 ensureDirectoriesExist ( getDirectoryPath ( normalizePath ( fileName ) ) ) ;
932932
933933 if ( isWatchSet ( options ) && sys . createHash && sys . getModifiedTime ) {
@@ -937,8 +937,8 @@ namespace ts {
937937 sys . writeFile ( fileName , data , writeByteOrderMark ) ;
938938 }
939939
940- performance . mark ( "ioWriteEnd " ) ;
941- performance . measure ( "I/O Write" , "ioWriteStart " , "ioWriteEnd " ) ;
940+ performance . mark ( "afterIOWrite " ) ;
941+ performance . measure ( "I/O Write" , "beforeIOWrite " , "afterIOWrite " ) ;
942942 }
943943 catch ( e ) {
944944 if ( onError ) {
@@ -1120,7 +1120,7 @@ namespace ts {
11201120 // Track source files that are source files found by searching under node_modules, as these shouldn't be compiled.
11211121 const sourceFilesFoundSearchingNodeModules = createMap < boolean > ( ) ;
11221122
1123- performance . mark ( "programStart " ) ;
1123+ performance . mark ( "beforeProgram " ) ;
11241124
11251125 host = host || createCompilerHost ( options ) ;
11261126
@@ -1218,8 +1218,8 @@ namespace ts {
12181218 } ;
12191219
12201220 verifyCompilerOptions ( ) ;
1221- performance . mark ( "programEnd " ) ;
1222- performance . measure ( "Program" , "programStart " , "programEnd " ) ;
1221+ performance . mark ( "afterProgram " ) ;
1222+ performance . measure ( "Program" , "beforeProgram " , "afterProgram " ) ;
12231223
12241224 return program ;
12251225
@@ -1462,15 +1462,15 @@ namespace ts {
14621462 // checked is to not pass the file to getEmitResolver.
14631463 const emitResolver = getDiagnosticsProducingTypeChecker ( ) . getEmitResolver ( ( options . outFile || options . out ) ? undefined : sourceFile ) ;
14641464
1465- performance . mark ( "emitStart " ) ;
1465+ performance . mark ( "beforeEmit " ) ;
14661466
14671467 const emitResult = emitFiles (
14681468 emitResolver ,
14691469 getEmitHost ( writeFileCallback ) ,
14701470 sourceFile ) ;
14711471
1472- performance . mark ( "emitEnd " ) ;
1473- performance . measure ( "Emit" , "emitStart " , "emitEnd " ) ;
1472+ performance . mark ( "afterEmit " ) ;
1473+ performance . measure ( "Emit" , "beforeEmit " , "afterEmit " ) ;
14741474 return emitResult ;
14751475 }
14761476
0 commit comments