aboutsummaryrefslogtreecommitdiff
path: root/builtin/profiler
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/profiler')
-rw-r--r--builtin/profiler/instrumentation.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/profiler/instrumentation.lua b/builtin/profiler/instrumentation.lua
index 7c21859d3..2ab658bb2 100644
--- a/builtin/profiler/instrumentation.lua
+++ b/builtin/profiler/instrumentation.lua
@@ -88,7 +88,7 @@ local function instrument(def)
if not def or not def.func then
return
end
- def.mod = def.mod or get_current_modname()
+ def.mod = def.mod or get_current_modname() or "??"
local modname = def.mod
local instrument_name = generate_name(def)
local func = def.func