From c99e8d0bc160c308fc5766e5735f84a00f52c9ec Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Tue, 13 May 2025 23:30:26 +0200 Subject: (profiler) change profiler perf log file name --- xmake/core/base/profiler.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/base/profiler.lua b/xmake/core/base/profiler.lua index a5e51f836..1cd1a1d2d 100644 --- a/xmake/core/base/profiler.lua +++ b/xmake/core/base/profiler.lua @@ -184,7 +184,7 @@ function profiler:stop() -- show and save reports local report_lines = "" - local outfile = os.tmpfile() .. os.date() .. ".log" + local outfile = path.join(os.tmpdir(), "perf-call-" .. os.date("%d-%m-%y-%S-%M-%H") .. ".log") for _, report in ipairs(reports) do local percent = (report.totaltime / totaltime) * 100 if percent < 1 then @@ -210,7 +210,7 @@ function profiler:stop() -- show and save reports local count = 0 local max_count = 64 - local outfile = os.tmpfile() .. os.date() .. ".log" + local outfile = path.join(os.tmpdir(), "perf-tag-" .. os.date("%d-%m-%y-%S-%M-%H") .. ".log") local report_lines = "" while h:length() > 0 do local report = h:pop() -- cgit v1.3.1