diff options
| author | Arthur LAURENT <[email protected]> | 2025-05-13 23:30:26 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-05-13 23:30:26 +0200 |
| commit | c99e8d0bc160c308fc5766e5735f84a00f52c9ec (patch) | |
| tree | 5d3c3a5c127d4895aa07dbb06d0f2ed52baa2bf9 | |
| parent | b0240d3fc8bd8df3457c9cfae996ebc503a24014 (diff) | |
(profiler) change profiler perf log file name
| -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() |
