[PATCH] D122894: [clangd] Record IO precentage for first preamble build of the instance
Adam Czachorowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 1 04:56:26 PDT 2022
adamcz added a comment.
Thanks, I was just about to fix that!
================
Comment at: clang-tools-extra/clangd/TUScheduler.cpp:115
bool IsFirstPreamble) {
- static llvm::once_flag OnceFlag;
- llvm::call_once(OnceFlag, [&] {
+ auto RecordWithLabel = [&Stats](llvm::StringRef Label) {
PreambleBuildFilesystemLatency.record(Stats.FileSystemTime, "first_build");
----------------
You're not using Label anywhere. Replace first_build below with Label.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122894/new/
https://reviews.llvm.org/D122894
More information about the cfe-commits
mailing list