Expose PrettyText.v8 heap_stats in stats socket.

This commit is contained in:
Guo Xiang Tan 2017-07-20 13:07:22 +09:00
parent 0edb0018ff
commit 30ec87fcb5

View File

@ -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