summaryrefslogtreecommitdiff
path: root/xmake/core/base/profiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/profiler.lua')
-rw-r--r--xmake/core/base/profiler.lua20
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