mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
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:
1 parent
e52e1659db
commit
2a26beb9d8
12 files changed
+159
-42
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user