Files
Michael BiancoandGitHub 1b4469cb4f fix(ruby): upgrade to jemalloc2 (#338)
* fix: use jemalloc2

* test(ruby): add jemalloc example

* docs: update jemalloc docs

* test: snapshot update
2026-03-12 12:27:48 -06:00

8 lines
225 B
Ruby

# We check the memory map of the current process to see if the
# shared library is actually loaded.
if File.read("/proc/self/maps").include?("libjemalloc")
puts "jemalloc available"
else
puts "jemalloc not available"
end