Skip to content

Commit 3fe38e2

Browse files
authored
Merge pull request #19831 from benlangmuir/stats
test/SourceKit/Misc/stats.swift: remove checks that will not be reliable
2 parents 0030a77 + 4c59e0f commit 3fe38e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/SourceKit/Misc/stats.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ func foo() {}
3131
// SEMA_2: 5 {{.*}} source.statistic.num-requests
3232
// SEMA_2: 0 {{.*}} source.statistic.num-semantic-requests
3333
// SEMA_2: 2 {{.*}} source.statistic.num-ast-builds
34-
// SEMA_2: 1 {{.*}} source.statistic.num-asts-in-memory
35-
// FIXME_SEMA_2: 0 {{.*}} source.statistic.num-ast-cache-hits
34+
// NOTE: we cannot match num-asts-in-memory, or num-ast-cache-hits reliably when
35+
// doing edits. The first ASTConsumer can still be running when the edit happens
36+
// in which case we may trigger an extra processLatestSnapshotAsync() which will
37+
// hit the cache, and/or keep the first AST in memory long enough to be reported
38+
// here.
3639
// SEMA_2: 0 {{.*}} source.statistic.num-ast-snaphost-uses
3740

3841
// RUN: %sourcekitd-test -req=sema %s -- %s == -req=cursor -pos=1:6 %s -- %s == -req=stats | %FileCheck %s -check-prefix=SEMA_3

0 commit comments

Comments
 (0)