昨晚的大雨帶來今天的涼爽,早睡早起。
這一篇,給大家介紹個Erlang工具:observer。
簡介(摘自erlang doc):
A GUI tool for observing an erlang system.
The observer is gui frontend containing various tools to inspect a system. It displays system information, application structures, process information, ets or mnesia tables and a frontend for tracing with ttb.
erlang observer doc: http://www.erlang.org/doc/man/observer.html
我們啟動cowboy_examples例子和observer,如下圖:
下面幾張圖是observer的界面:
如圖一,第一個選項卡是系統,包含系統和架構,內存使用情況,CPU和線程,還有統計數據。
圖二,負荷圖:
圖三,應用程序,這里我們能看到我們啟動的應用程序:
圖四,進程列表:
圖五,ets 或者 mnesia 表的使用:
圖六,a frontend for tracing with ttb:
圖七:
圖八:
最后2張圖,我對emacs@ubuntu節點下的cowboy_requests_sup模塊的跟蹤。
好了,整個工具界面還是比較友好的,大家去試試吧。
最后,謝謝大家支持,如果你覺得幫助到你了,麻煩動下鼠標,推薦下喔!!