eflame icon indicating copy to clipboard operation
eflame copied to clipboard

Request: support custom timeout in stop_trace/2

Open jmitchell opened this issue 8 years ago • 3 comments

I was getting timeout errors after the function passed to apply/2 was finished. Turned out I needed to increase the timeout in stop_trace/2. It would be nice if it could be customized by the user.

The generated stacks.out file in my case was 81 MB. Admittedly, the resulting flame graph is noisy enough that it's difficult to drill in, but the high-level picture is still somewhat insightful. The noise and large file size are due in part to me testing a recursive algorithm.

jmitchell avatar Jan 17 '17 17:01 jmitchell

I would really love this feature as well

leifg avatar Sep 19 '17 14:09 leifg

Would anyone like to add this feature in a PR? I assume this implies exporting one more function — apply/6 or smth like that.

proger avatar Sep 19 '17 14:09 proger

I took a stab at this, but I'm not sure if it is idiomatic Erlang.

https://github.com/proger/eflame/pull/15

ijcd avatar Oct 22 '17 22:10 ijcd