mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* fix: use jemalloc2 * test(ruby): add jemalloc example * docs: update jemalloc docs * test: snapshot update
8 lines
225 B
Ruby
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
|