dynarmic/src/backend/x64/perf_map.h

26 lines
604 B
C
Raw Normal View History

2018-07-27 12:42:10 +01:00
/* This file is part of the dynarmic project.
* Copyright (c) 2018 MerryMage
2020-04-23 15:25:11 +01:00
* SPDX-License-Identifier: 0BSD
2018-07-27 12:42:10 +01:00
*/
#pragma once
#include <string_view>
2018-07-27 12:42:10 +01:00
#include "common/cast_util.h"
namespace Dynarmic::Backend::X64 {
2018-07-27 12:42:10 +01:00
namespace detail {
void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name);
2018-07-27 12:42:10 +01:00
} // namespace detail
template<typename T>
void PerfMapRegister(T start, const void* end, std::string_view friendly_name) {
2018-07-27 12:42:10 +01:00
detail::PerfMapRegister(Common::BitCast<const void*>(start), end, friendly_name);
}
void PerfMapClear();
} // namespace Dynarmic::Backend::X64