mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
7 lines
157 B
Ruby
7 lines
157 B
Ruby
Thread.new {
|
|
require "objspace"
|
|
ObjectSpace.trace_object_allocations_start
|
|
GC.start
|
|
ObjectSpace.dump_all(output: File.open("heap.json", "w"))
|
|
}.join
|