[all-commits] [llvm/llvm-project] dfbfb6: [SourceManager] Expose max usage of source locatio...
Ilya Biryukov via All-commits
all-commits at lists.llvm.org
Mon Jun 24 02:57:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dfbfb6c5c6dba8a25c7a9769e969d56ba19fc14d
https://github.com/llvm/llvm-project/commit/dfbfb6c5c6dba8a25c7a9769e969d56ba19fc14d
Author: Ilya Biryukov <ibiryukov at google.com>
Date: 2024-06-24 (Mon, 24 Jun 2024)
Changed paths:
M clang/include/clang/Basic/SourceManager.h
M clang/lib/Basic/SourceManager.cpp
Log Message:
-----------
[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`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list