Skip to content

Commit c99f7fa

Browse files
committed
---
yaml --- r: 345550 b: refs/heads/master c: 0f3d25d h: refs/heads/master
1 parent b45f513 commit c99f7fa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d19a17603a6a89185ad59c18a61023f737a6a9ea
2+
refs/heads/master: 0f3d25dcdcce35223e2d989cf9e53ed40595d172
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/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)