//===--- IndexBenchmark.cpp - Clangd index benchmarks -----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "../index/Serialization.h" #include "../index/dex/Dex.h" #include "benchmark/benchmark.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Path.h" #include "llvm/Support/Regex.h" #include <string> const char *IndexFilename; const char *RequestsFilename; namespace clang { namespace clangd { namespace … // namespace } // namespace clangd } // namespace clang // FIXME(kbobyrev): Add index building time benchmarks. // FIXME(kbobyrev): Add memory consumption "benchmarks" by manually measuring // in-memory index size and reporting it as time. // FIXME(kbobyrev): Create a logger wrapper to suppress debugging info printer. int main(int argc, char *argv[]) { … }