Comments (7)
@davydog187 we do have support for LV 0.18 in main, however #26 is a real issue that I have not yet been able to resolve and was hoping to figure out before cutting an official hex release. Could you try main in your project and let me know if you run into the same issue outlined in #26? Either way if you could report your findings in that issue, it would be greatly appreciated.
from flame_on.
@TheFirstAvenger appreciate it! I'll give it a run as soon as I can and report back
from flame_on.
@TheFirstAvenger I was able to get it installed against the main branch. However, when running against the :cowboy_handler.execute/2
function, it resulted in a lot of spans and crashed the BEAM.
[debug] flame_on trace: call {:gen, :"-call/4-fun-0-", 4}, stack_size: 100
[debug] flame_on trace: call {:gen, :do_call, 4}, stack_size: 101
[debug] flame_on trace: call {:erlang, :monitor, 2}, stack_size: 102
[debug] flame_on trace: return_to {:gen, :do_call, 4}, stack_size: 103
[debug] flame_on trace: out {:gen, :do_call, 4}, stack_size: 102
[debug] flame_on trace: in {:gen, :do_call, 4}, stack_size: 103
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
[os_mon] memory supervisor port (memsup): Erlang has closed
[1] 27037 bus error mix phx.server
I believe this may be related to #26.
However, running against a smaller function like Phoenix.Flash.get/2
worked just fine
from flame_on.
Hi - i got a stacktrace while giving it (main) a try, probably this is of any help:
[debug] Replied in 536µs
[debug] flame_on trace: call {:meck, :passthrough, 1}, stack_size: 1
[debug] flame_on trace: call {:meck_code_gen, :get_current_call, 0}, stack_size: 2
[debug] flame_on trace: return_to :undefined, stack_size: 3
[debug] flame_on trace: call {:meck_util, :original_name, 1}, stack_size: 1
[debug] flame_on trace: call {:erlang, :atom_to_list, 1}, stack_size: 2
[debug] flame_on trace: return_to :undefined, stack_size: 3
[debug] flame_on trace: call {:erlang, :++, 2}, stack_size: 1
[debug] flame_on trace: return_to :undefined, stack_size: 2
[debug] flame_on trace: call {:erlang, :list_to_atom, 1}, stack_size: 1
[debug] flame_on trace: return_to :undefined, stack_size: 2
[debug] flame_on trace: return_to :undefined, stack_size: 1
[error] GenServer FlameOn.Capture.Server terminating
** (FunctionClauseError) no function clause matching in FlameOn.Capture.Server.Stack.handle_trace_return_to/3
(flame_on 0.5.2) lib/flame_on/capture/server/stack.ex:54: FlameOn.Capture.Server.Stack.handle_trace_return_to([%FlameOn.Capture.Block{id: "starter", children: [%FlameOn.Capture.Block{id: "0724a9fb-fb08-4904-b7a0-ed0c9380088d", children: [], duration: 6, function: {:erlang, :list_to_atom, 1}, level: 1, absolute_start: 1683622483164196, max_child_level: nil}, %FlameOn.Capture.Block{id: "81b2736a-ef0a-49cc-8e29-368e5cd8be1a", children: [], duration: 16, function: {:erlang, :++, 2}, level: 1, absolute_start: 1683622483164176, max_child_level: nil}, %FlameOn.Capture.Block{id: "4c62feb3-6e66-4625-bd55-cf74b75149e8", children: [%FlameOn.Capture.Block{id: "e10b8d3e-33fa-4e5b-9b09-662ca51c6e2a", children: [], duration: 4, function: {:erlang, :atom_to_list, 1}, level: 2, absolute_start: 1683622483164152, max_child_level: nil}], duration: 9, function: {:meck_util, :original_name, 1}, level: 1, absolute_start: 1683622483164147, max_child_level: nil}, %FlameOn.Capture.Block{id: "fb54b54b-296d-4a06-9476-800e7f555550", children: [%FlameOn.Capture.Block{id: "6cfde114-1060-46c5-9f6e-1d2c1bcdf257", children: [], duration: 4, function: {:meck_code_gen, :get_current_call, 0}, level: 2, absolute_start: 1683622483164139, max_child_level: nil}], duration: 15, function: {:meck, :passthrough, 1}, level: 1, absolute_start: 1683622483164128, max_child_level: nil}], duration: nil, function: {:cowboy_handler, :execute, 2}, level: nil, absolute_start: 0, max_child_level: nil}], :undefined, 1683622483164203)
(flame_on 0.5.2) lib/flame_on/capture/server.ex:52: FlameOn.Capture.Server.handle_info/2
(stdlib 4.3) gen_server.erl:1123: :gen_server.try_dispatch/4
(stdlib 4.3) gen_server.erl:1200: :gen_server.handle_msg/6
(stdlib 4.3) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Last message: {:trace_ts, #PID<0.3788.0>, :return_to, :undefined, {1683, 622483, 164203}}
State: %FlameOn.Capture.Server.State{stack: [%FlameOn.Capture.Block{id: "starter", children: [%FlameOn.Capture.Block{id: "0724a9fb-fb08-4904-b7a0-ed0c9380088d", children: [], duration: 6, function: {:erlang, :list_to_atom, 1}, level: 1, absolute_start: 1683622483164196, max_child_level: nil}, %FlameOn.Capture.Block{id: "81b2736a-ef0a-49cc-8e29-368e5cd8be1a", children: [], duration: 16, function: {:erlang, :++, 2}, level: 1, absolute_start: 1683622483164176, max_child_level: nil}, %FlameOn.Capture.Block{id: "4c62feb3-6e66-4625-bd55-cf74b75149e8", children: [%FlameOn.Capture.Block{id: "e10b8d3e-33fa-4e5b-9b09-662ca51c6e2a", children: [], duration: 4, function: {:erlang, :atom_to_list, 1}, level: 2, absolute_start: 1683622483164152, max_child_level: nil}], duration: 9, function: {:meck_util, :original_name, 1}, level: 1, absolute_start: 1683622483164147, max_child_level: nil}, %FlameOn.Capture.Block{id: "fb54b54b-296d-4a06-9476-800e7f555550", children: [%FlameOn.Capture.Block{id: "6cfde114-1060-46c5-9f6e-1d2c1bcdf257", children: [], duration: 4, function: {:meck_code_gen, :get_current_call, 0}, level: 2, absolute_start: 1683622483164139, max_child_level: nil}], duration: 15, function: {:meck, :passthrough, 1}, level: 1, absolute_start: 1683622483164128, max_child_level: nil}], duration: nil, function: {:cowboy_handler, :execute, 2}, level: nil, absolute_start: 0, max_child_level: nil}], config: %FlameOn.Capture.Config{module: :cowboy_handler, function: :execute, arity: 2, timeout: 15000, target_node: :nonode@nohost, reply_to: {:live_component, #PID<0.3772.0>, :flame_on_component}}, trace_started?: false}
from flame_on.
Related Issues (20)
- Rebuild underlying capture engine
- Allow user to generate and download .bggg flamegraph files HOT 1
- Flameon performance HOT 2
- Liveview 0.18.0? HOT 12
- GenServer :eflambe_server terminating HOT 11
- MFA validation does not work for remote nodes HOT 1
- Module does not exist HOT 5
- Trace server overloaded with traces of Jason.Decoder.string HOT 4
- How to inspect a phoenix handle_message? HOT 2
- PhoenixLiveView 0.19 & PhoenixLiveDashboard 0.8 breaking changes HOT 2
- "Flame on!" failed: function :erpc.call/4 is undefined (module :erpc is not available) HOT 1
- "Flame On" page not visible in LiveDashboard HOT 2
- Save flame_on results to a file
- CSP nonces not applied HOT 2
- Received unexpected trace event HOT 5
- Failing to read output files HOT 2
- Capture function calls on remote nodes HOT 2
- Received unexpected trace event (:gc_minor_start & :gc_minor_end) HOT 6
- Flame On does not display result HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flame_on.