mirror of
https://github.com/RPCS3/rpcs3
synced 2024-10-06 16:29:16 +00:00
Don't create perf map files in linux unless enabled
This commit is contained in:
parent
16f006362e
commit
b4d5b44e00
|
@ -19,6 +19,7 @@ LOG_CHANNEL(jit_log, "JIT");
|
||||||
void jit_announce(uptr func, usz size, std::string_view name)
|
void jit_announce(uptr func, usz size, std::string_view name)
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
#if 0
|
||||||
static const struct tmp_perf_map
|
static const struct tmp_perf_map
|
||||||
{
|
{
|
||||||
std::string name{fmt::format("/tmp/perf-%d.map", getpid())};
|
std::string name{fmt::format("/tmp/perf-%d.map", getpid())};
|
||||||
|
@ -44,6 +45,7 @@ void jit_announce(uptr func, usz size, std::string_view name)
|
||||||
fs::remove_file(s_map.name);
|
fs::remove_file(s_map.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!size)
|
if (!size)
|
||||||
|
|
Loading…
Reference in a new issue