aboutsummaryrefslogtreecommitdiff
path: root/core/debug
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-28 13:51:10 +0100
committergingerBill <bill@gingerbill.org>2024-04-28 13:51:10 +0100
commit7ee2c1084f14b380908090623b120e5c94ddb536 (patch)
tree9e90154ba490ea65e973e0591e6d12eabe1d5bb5 /core/debug
parentc0b7dd7da60c4b7557e494049937af630bc25c33 (diff)
Update doc.odin
Diffstat (limited to 'core/debug')
-rw-r--r--core/debug/trace/doc.odin5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/debug/trace/doc.odin b/core/debug/trace/doc.odin
index 8c0778558..e65548769 100644
--- a/core/debug/trace/doc.odin
+++ b/core/debug/trace/doc.odin
@@ -19,10 +19,11 @@ Example:
}
runtime.print_byte('\n')
- ctx := &global_trace_ctx
+ ctx := &trace_ctx
if !trace.in_resolve(ctx) {
+ buf: [64]trace.Frame
runtime.print_string("Debug Trace:\n")
- frames := trace.frames(ctx, skip=1, allocator=context.temp_allocator)
+ frames := trace.frames(ctx, 1, buf[:])
for f, i in frames {
fl := trace.resolve(ctx, f, context.temp_allocator)
if fl.loc.file_path == "" && fl.loc.line == 0 {