diff options
| -rw-r--r-- | xmake/core/base/profiler.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/base/profiler.lua b/xmake/core/base/profiler.lua index 480e3fc75..e8aeab18c 100644 --- a/xmake/core/base/profiler.lua +++ b/xmake/core/base/profiler.lua @@ -107,8 +107,9 @@ function profiler:_profiling_return(funcinfo) assert(report) -- update the total time - if report.calltime then + if report.calltime and report.calltime > 0 then report.totaltime = report.totaltime + (stoptime - report.calltime) + report.calltime = 0 end end |
