You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to add more functionality we need to extend the query syntax to allow more options and alternatives. (eg #108 )
Requirements:
It must be parsable (at list tokenize, then split, then parse - this is how query processing in erlang-syntax mode already works) and have familiar syntax in both Erlang and Elixir.
(Maybe) It also has to be generated from a list of options (oposit of parsing, one-one mapping)
1. Action-functions
One option is to extend the match-spec syntax by allowing more action-functions.
advantage: more flexible, it is easier to generate (even on the frontend)
disadvantage: more verbose (how will this fit in graph title?)
We can still expose the raw/parsed Erlang API: xprof_core:monitor_pp(QueryString) would parse the query and convert into a lower level xprof_core:monitor(Command, Options) format.
Current xprof_core:monitor({Mod,Fun,Arity}) would be equal with xprof_core:monitor(funlatency, [{mfa, {Mod,Fun,Arity}}])
3. Options
Alternatively we can keep current query syntax and add option buttons/widgets on the gui. They map to a separate option list in the Erlang API.
The text was updated successfully, but these errors were encountered:
In order to add more functionality we need to extend the query syntax to allow more options and alternatives. (eg #108 )
Requirements:
1. Action-functions
One option is to extend the match-spec syntax by allowing more action-functions.
2. Record/Struct/Keyword list
Other choice is to have something like records or structs:
construction:
{}
examples (multiple lines for readability)
Erlang:
Elixir:
advantage: more flexible, it is easier to generate (even on the frontend)
disadvantage: more verbose (how will this fit in graph title?)
We can still expose the raw/parsed Erlang API:
xprof_core:monitor_pp(QueryString)
would parse the query and convert into a lower levelxprof_core:monitor(Command, Options)
format.Current
xprof_core:monitor({Mod,Fun,Arity})
would be equal withxprof_core:monitor(funlatency, [{mfa, {Mod,Fun,Arity}}])
3. Options
Alternatively we can keep current query syntax and add option buttons/widgets on the gui. They map to a separate option list in the Erlang API.
The text was updated successfully, but these errors were encountered: