diff options
| author | Laytan <laytanlaats@hotmail.com> | 2025-08-05 07:10:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-05 07:10:12 +0200 |
| commit | 8e354a2afdb7723c901c131a2c8127a877a6be78 (patch) | |
| tree | 8926feb166a3ffb3699744b5d401912373d0081f | |
| parent | c910b5e583b8064f551179bfddc7c59ef5a32675 (diff) | |
| parent | 45e4ce5d449f0fad58c6f527c5b926bf2d58402f (diff) | |
Merge pull request #5539 from Jack-Punter/fix-spall-scoped-event-with-autotracing
Adds @(no_instrumentation) to spall buffer and SCOPED operations
| -rw-r--r-- | core/prof/spall/spall.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/prof/spall/spall.odin b/core/prof/spall/spall.odin index 16b809359..dc53dc3dc 100644 --- a/core/prof/spall/spall.odin +++ b/core/prof/spall/spall.odin @@ -103,6 +103,7 @@ context_create_with_sleep :: proc(filename: string, sleep := 2 * time.Second) -> context_create :: proc{context_create_with_scale, context_create_with_sleep} +@(no_instrumentation) context_destroy :: proc(ctx: ^Context) { if ctx == nil { return @@ -146,6 +147,7 @@ buffer_flush :: proc "contextless" (ctx: ^Context, buffer: ^Buffer) #no_bounds_c buffer.first_ts = end } +@(no_instrumentation) buffer_destroy :: proc(ctx: ^Context, buffer: ^Buffer) { buffer_flush(ctx, buffer) @@ -155,12 +157,14 @@ buffer_destroy :: proc(ctx: ^Context, buffer: ^Buffer) { @(deferred_in=_scoped_buffer_end) +@(no_instrumentation) SCOPED_EVENT :: proc(ctx: ^Context, buffer: ^Buffer, name: string, args: string = "", location := #caller_location) -> bool { _buffer_begin(ctx, buffer, name, args, location) return true } @(private) +@(no_instrumentation) _scoped_buffer_end :: proc(ctx: ^Context, buffer: ^Buffer, _, _: string, _ := #caller_location) { _buffer_end(ctx, buffer) } |