mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Expose PrettyText.v8
heap_stats in stats socket.
This commit is contained in:
parent
0edb0018ff
commit
30ec87fcb5
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ class StatsSocket < SocketServer
|
||||||
case command
|
case command
|
||||||
when "gc_stat"
|
when "gc_stat"
|
||||||
GC.stat.to_json
|
GC.stat.to_json
|
||||||
|
when "v8_stat"
|
||||||
|
PrettyText.v8.heap_stats.to_json
|
||||||
else
|
else
|
||||||
"[\"UNKNOWN COMMAND\"]"
|
"[\"UNKNOWN COMMAND\"]"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue