mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-08 16:10:05 +01:00
We can just use a non-owning view into a string in this case instead of potentially allocating a std::string instance.
29 lines
741 B
C++
29 lines
741 B
C++
/* This file is part of the dynarmic project.
|
|
* Copyright (c) 2018 MerryMage
|
|
* This software may be used and distributed according to the terms of the GNU
|
|
* General Public License version 2 or any later version.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
#include "common/cast_util.h"
|
|
|
|
namespace Dynarmic::BackendX64 {
|
|
|
|
namespace detail {
|
|
void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name);
|
|
} // namespace detail
|
|
|
|
template<typename T>
|
|
void PerfMapRegister(T start, const void* end, std::string_view friendly_name) {
|
|
detail::PerfMapRegister(Common::BitCast<const void*>(start), end, friendly_name);
|
|
}
|
|
|
|
void PerfMapClear();
|
|
|
|
} // namespace Dynarmic::BackendX64
|