andytill / erlyberly

erlang tracing for the masses
https://twitter.com/erlyberlytips
GNU General Public License v3.0
694 stars 43 forks source link

Regression: Not yet returned long running calls are not distinguished with yellow background #103

Closed aboroska closed 8 years ago

aboroska commented 8 years ago

Traced functions which neither crashed nor returned are normally coloured yellow in the trace window. This is not working currently. To reproduce in Elixir you can try the following module:

defmodule TestYellow do
  def sloooow ms do
    Process.sleep ms
  end
end

In the iex shell:

iex(1)> c "testyellow.ex"
iex(2)> TestYellow.sloooow 10_000

Or in Erlang:

-module(testyellow).
-export([sloooow/1]).
sloooow(Ms) ->
    timer:sleep(Ms).

erl shell after setting the traces for sloooow and get_all_env:

spawn(testyellow, sloooow, [60000]), application:get_all_env(). 

_get_allenv is traced and shown, but the trace line displaying sloooow is not yellow while the function is executing.

andytill commented 8 years ago

Fixed in #104.