Skip to content

Commit

Permalink
Add mem tracer allocator convenience function
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Oct 7, 2024
1 parent 4c1b410 commit 8e12d23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LibAwsCommon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ function default_aws_allocator()
end
end

mem_trace_allocator(allocator=default_aws_allocator(), mem_trace_level=AWS_MEMTRACE_STACKS, frames_per_stack=8) = aws_mem_tracer_new(allocator, C_NULL, mem_trace_level, frames_per_stack)

export default_aws_allocator, set_default_aws_allocator!

function init(allocator=default_aws_allocator())
Expand Down

0 comments on commit 8e12d23

Please sign in to comment.