diff options
| author | ruki <[email protected]> | 2023-03-17 22:36:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-17 22:36:01 +0800 |
| commit | 102d82df48e78f2bc0ef9d8650956c57504a3f1f (patch) | |
| tree | 2e4d5096e0eac0b3ce398393f62dcb95dc9aa728 /xmake/core/base/profiler.lua | |
| parent | 4d78fc5549b7033096812effcdc33cdb06e2abc2 (diff) | |
trace more tag
Diffstat (limited to 'xmake/core/base/profiler.lua')
| -rw-r--r-- | xmake/core/base/profiler.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/xmake/core/base/profiler.lua b/xmake/core/base/profiler.lua index bb34c06c4..3736398a3 100644 --- a/xmake/core/base/profiler.lua +++ b/xmake/core/base/profiler.lua @@ -67,10 +67,12 @@ end function profiler:_tag_key(name, argv) local key = name if argv then - if type(argv) == "table" then - key = key .. os.args(argv) - else - key = key .. tostring(argv) + for _, item in ipairs(argv) do + if type(item) == "table" then + key = key .. os.args(item) + else + key = key .. tostring(item) + end end end return key @@ -80,10 +82,12 @@ end function profiler:_tag_title(name, argv) local key = name if argv then - if type(argv) == "table" then - key = key .. ": " .. os.args(argv) - else - key = key .. ": " .. tostring(argv) + for _, item in ipairs(argv) do + if type(item) == "table" then + key = key .. ": " .. os.args(item) + else + key = key .. ": " .. tostring(item) + end end end return key |
