We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the old trace API, I can use meta tracing and 'trace' function in match specification body to enable 'receive' trace for a specific process:
Tracer = spawn(fun F() -> receive M -> io:format("~p~n",[M]), F() end end), erlang:trace_pattern({lists, seq, 2}, [{'_', [], [{trace, [], ['receive', timestamp, {const, {tracer, Tracer}}]}]}], [{meta, Tracer}]), spawn(fun () -> lists:seq(1,10), self() ! message, receive message -> ok end end). {trace_ts,<0.89.0>,call,{lists,seq,[1,10]},{1720,685691,308331}} <0.89.0> {trace_ts,<0.89.0>,'receive',message,{1720,685691,308357}}
Trying the same thing with new API doesn't work:
Tracer = spawn(fun F() -> receive M -> io:format("~p~n",[M]), F() end end), Session = trace:session_create(my_session, Tracer, []), trace:function(Session, {lists, seq, 2}, [{'_', [], [{trace, [], ['receive', timestamp]}]}], [meta]), spawn(fun () -> lists:seq(1,10), self() ! message, receive message -> ok end end). {trace_ts,<0.89.0>,call,{lists,seq,[1,10]},{1720,685744,543604}} <0.89.0>
The text was updated successfully, but these errors were encountered:
Thanks for your report! Unfortunately most of us are on vacation right now, we'll revisit this once we're back. :-)
Sorry, something went wrong.
Fix merged to maint branch for OTP-27.1 soon to be released.
sverker
Successfully merging a pull request may close this issue.
With the old trace API, I can use meta tracing and 'trace' function in match specification body to enable 'receive' trace for a specific process:
Trying the same thing with new API doesn't work:
The text was updated successfully, but these errors were encountered: