llvm-project
dfbfb6c5 - [SourceManager] Expose max usage of source location space as a Statistic (#96292)

Commit
1 year ago
[SourceManager] Expose max usage of source location space as a Statistic (#96292) We have been running into source location exhaustion recently and want to use the statistics to monitor the usage in various files to be able to anticipate where the next problem will happen. I picked `Statistic` because it can be written into a structured JSON file and is easier to consume by further automation. This commit does not change any existing per-source-manager metrics exposed via `SourceManager::PrintStats()`. This does create some redundancy, but I also expect to be non-controversial because it aligns with the intended use of `Statistic`.
Author
Parents
Loading