Commit Graph

3 Commits

Author SHA1 Message Date
Ben Langmuir
4c59e0f40c test/SourceKit/Misc/stats.swift: remove checks that will not be reliable
We already disabled one of these because it failed (extremely) rarely in
CI, but the assumption was that there was a bug. In reality, the
behaviour was correct, so remove the unreliable checks for good and
document why in the test.

rdar://36408114
2018-10-11 11:25:39 -07:00
Ben Langmuir
6311f07b49 [test] Disable part of a test that is failing non-deterministically
Very rarely this test fails with 1 instead of 0 AST-cache hits.
Disabling until it can be investigated and fixed.
2018-01-10 09:42:38 -08:00
Ben Langmuir
9c7d9235de [sourcekitd] Add a request to get statistics from the service
... and add a few basic statistics about the number of requests, ASTs
built, etc.  The Statistic type is loosely based on the one from LLVM,
but suitable for using without DEBUG macros and using SourceKit UIdents
to identify the statistic.  The easiest way to add a new statistic is to
add it to SwiftStatistics.def in the SwiftLangSupport.
2017-10-05 12:34:49 -07:00