[erlang-questions] how can I access test_server_loc in the process dict of another process?
Thu Apr 30 11:44:00 CEST 2009
"Steve Kirsch" <> writes:
> I wrote a simple statistical profiler that basically snapshots a spawned
> MFA every 10 msec for 100 samples using process_info(Pid,
> that's pretty cool.
> But way cooler is to include:
> in the module I want to statistically profile.
> This essentially pushes your M, F, line number in the process dictionary
> (under key test_server_loc) each time you execute a line of code
> (replacing it if in the same function so you get a call stack more or
> less to a max depth of 10).
> That's way cool.
> So I'd like to access that key (test_server_loc) from my statistical
> profiler which is running in another process.
allow me to point out that what you're trying to accomplish can be
done (without recompiling/parse transforms) through tracing.
More information about the erlang-questions