Merge pull request #37450 from ahoppen/pr/count-instructions-for-completion-request

[SourceKit] Report number of instructions executed since SourceKit was started in statistics request
This commit is contained in:
Alex Hoppen
2021-05-25 08:39:43 +02:00
committed by GitHub
5 changed files with 28 additions and 11 deletions

View File

@@ -178,7 +178,7 @@ UID_KEYS = [
KEY('ExpressionLength', 'key.expression_length'),
KEY('ExpressionType', 'key.expression_type'),
KEY('CanonicalizeType', 'key.canonicalize_type'),
KEY('InternalDiagnostic', "key.internal_diagnostic"),
KEY('InternalDiagnostic', 'key.internal_diagnostic'),
KEY('VFSName', 'key.vfs.name'),
KEY('VFSOptions', 'key.vfs.options'),
KEY('Files', 'key.files'),
@@ -457,6 +457,7 @@ UID_KINDS = [
KIND('Unknown', 'source.syntacticrename.unknown'),
KIND('StatNumRequests', 'source.statistic.num-requests'),
KIND('StatNumSemaRequests', 'source.statistic.num-semantic-requests'),
KIND('StatInstructionCount', 'source.statistic.instruction-count'),
KIND('SyntaxTreeOff', 'source.syntaxtree.transfer.off'),
KIND('SyntaxTreeFull', 'source.syntaxtree.transfer.full'),
KIND('Swift', 'source.lang.swift'),