llvm/llvm/unittests/Support/TimeProfilerTest.cpp

//===- unittests/TimeProfilerTest.cpp - TimeProfiler tests ----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
// These are bare-minimum 'smoke' tests of the time profiler. Not tested:
//  - multi-threading
//  - 'Total' entries
//  - elision of short or ill-formed entries
//  - detail callback
//  - no calls to now() if profiling is disabled
//  - suppression of contributions to total entries for nested entries
//===----------------------------------------------------------------------===//

#include "llvm/Support/TimeProfiler.h"
#include "gtest/gtest.h"

usingnamespacellvm;

namespace {

void setupProfiler() {}

std::string teardownProfiler() {}

TEST(TimeProfiler, Scope_Smoke) {}

TEST(TimeProfiler, Begin_End_Smoke) {}

TEST(TimeProfiler, Async_Begin_End_Smoke) {}

TEST(TimeProfiler, Begin_End_Disabled) {}

} // namespace