diff options
| -rw-r--r-- | xmake/core/base/profiler.lua | 4 |
1 files 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() |
