项目作者: ruanpienaar

项目描述 :
Erlang trace utility
高级语言: Erlang
项目地址: git://github.com/ruanpienaar/erltea.git
创建时间: 2016-03-16T14:25:07Z
项目社区:https://github.com/ruanpienaar/erltea

开源协议:

下载


erltea

Erlang trace utility


Why are you getting TEA?, when you asked for COFFEE?
Stop pulling your hair out, use tracing :)

Currently erltea uses Redbug found in eper, for doing the remote tracing.

Getting Started

Compiling

  1. make
  2. make multitail ( OPTIONAL )

Add your nodes to the nodes file
Each entry is a node name seperate by space then the cookie for that node.

  1. node1@host1.somewhere cookie1
  2. node2@host2.somewhere cookie2

start tracing by using the schnell script ;)
write the trace pattern in double quotes,
have a look at the Redbug Trace Pattern examples.

Example 1:

Trace all ets lookups where the table is my_table, and stop when either a time of 10s has been reached, or a maximum of 1000 messages.

  1. ./start_erltea.sh 10 1000 "ets:lookup(Tbl, _) when Tbl == my_table -> return"

Example 2:

Trace all ets lookups and trace all ets:delete calls for 60s or 100 messages

  1. ./start_erltea.sh 60 100 "ets:lookup/2 -> return" "ets:delete/1 -> return" "ets:delete/2 -> return"