Skip to content

Commit b953efb

Browse files
committed
logging: Profile only if ctx.profile
1 parent 6bb6218 commit b953efb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/logging-events.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import .TimespanLogging: Event, init_similar
88
import .TimespanLogging.Events: EventSaturation
99

1010
TimespanLogging.log_sink(ctx::Context) = ctx.log_sink
11-
TimespanLogging.profile(ctx::Context, category, id, tl) = category == :compute
11+
TimespanLogging.profile(ctx::Context, category, id, tl) =
12+
ctx.profile && category == :compute
1213

1314
"""
1415
BytesAllocd

0 commit comments

Comments
 (0)