llvm/llvm/unittests/XRay/ProfileTest.cpp

//===- ProfileTest.cpp - XRay Profile unit tests ----------------*- 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 "llvm/XRay/Profile.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"

#include <numeric>

namespace llvm {
namespace xray {
namespace {

AllOf;
ElementsAre;
Eq;
Field;
Not;
Pair;
UnorderedElementsAre;

TEST(ProfileTest, CreateProfile) {}

TEST(ProfileTest, InternPath) {}

TEST(ProfileTest, ExpandPath) {}

TEST(ProfileTest, AddBlocks) {}

TEST(ProfileTest, CopyProfile) {}

TEST(ProfileTest, MoveProfile) {}

TEST(ProfileTest, MergeProfilesByThread) {}

TEST(ProfileTest, MergeProfilesByStack) {}

TEST(ProfileTest, MergeProfilesByStackAccumulate) {}

TEST(ProfileTest, MergeProfilesByThreadAccumulate) {}
// FIXME: Add a test creating a Trace and generating a Profile
// FIXME: Add tests for ranking/sorting profile blocks by dimension

} // namespace
} // namespace xray
} // namespace llvm