diff --git a/lib/stats_socket.rb b/lib/stats_socket.rb index 2b81db678fb..4fe28763ed6 100644 --- a/lib/stats_socket.rb +++ b/lib/stats_socket.rb @@ -13,6 +13,8 @@ class StatsSocket < SocketServer case command when "gc_stat" GC.stat.to_json + when "v8_stat" + PrettyText.v8.heap_stats.to_json else "[\"UNKNOWN COMMAND\"]" end