//===-- PerfTests.cpp -----------------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// #ifdef __x86_64__ #include "Perf.h" #include "llvm/Support/Error.h" #include "gtest/gtest.h" #include <chrono> #include <cstdint> usingnamespacelldb_private; usingnamespaceprocess_linux; usingnamespacellvm; /// Helper function to read current TSC value. /// /// This code is based on llvm/xray. static Expected<uint64_t> readTsc() { … } // Test TSC to walltime conversion based on perf conversion values. TEST(Perf, TscConversion) { … } #endif // __x86_64__