Add performance framework from transforms branch (#9536)

* Port performance tools from transforms branch

* Use friendlier names, add compiler option to print all recorded measures

* Always print total time

* + -> .getTime
This commit is contained in:
Wesley Wigham authored and GitHub committed 2016-07-19 15:10:29 -07:00
1 parent e52e1659db
commit 2a26beb9d8
12 files changed
+159 -42

No files matched your search

+4
View File
@@ -240,6 +240,8 @@ namespace ts {
return;
}
const start = performance.mark();
const sourceLinePos = getLineAndCharacterOfPosition(currentSourceFile, pos);
// Convert the location to be one-based.
@@ -279,6 +281,8 @@ namespace ts {
}
updateLastEncodedAndRecordedSpans();
performance.measure("Source Map", start);
}
function getStartPos(range: TextRange) {