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
|
|
|
|
|
2018-09-15 19:57:07 +01:00
|
|
|
#include <string_view>
|
2018-07-27 12:42:10 +01:00
|
|
|
|
|
|
|
#include "common/cast_util.h"
|
|
|
|
|
2020-04-08 11:46:36 +01:00
|
|
|
namespace Dynarmic::Backend::X64 {
|
2018-07-27 12:42:10 +01:00
|
|
|
|
|
|
|
namespace detail {
|
2018-09-15 19:57:07 +01:00
|
|
|
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>
|
2018-09-15 19:57:07 +01:00
|
|
|
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();
|
|
|
|
|
2020-04-08 11:46:36 +01:00
|
|
|
} // namespace Dynarmic::Backend::X64
|