I committed a fix for messages handling in percept_db, it might be useful for your case<div><a href="https://github.com/spawnthink/otp/commit/5ba7bf2acdf59cf36dd626cc16c8de72b59b3946">https://github.com/spawnthink/otp/commit/5ba7bf2acdf59cf36dd626cc16c8de72b59b3946</a><br>
<br><div class="gmail_quote">2011/6/5 Muhammad Yousaf <span dir="ltr"><<a href="mailto:muhammad.yousaf@live.com">muhammad.yousaf@live.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">
<div>
<br><br><span style="font-family:Tahoma"><span style="font-size:12pt"><span style="font-style:italic"></span></span></span> My sorter:go have spawn only i.e <br><pre>go(I,N,M) -><br> spawn(?MODULE, main, [I,N,M,self()]),<br>
receive done -> ok end.<br>main(I,N,M,Parent) -><br> Pids = lists:foldl(<br> fun(_,Ps) -> <br> [ spawn(?MODULE,loop, []) | Ps]<br></pre><br>anyway by doing spawn(percept, analyze, ["test.dat"]).<br>
<br>it works thanks<br><br><br><span style="font-family:Tahoma"><span style="font-size:12pt"><span style="font-style:italic">Regards,</span></span></span><div><span style="font-family:Tahoma"><span style="font-size:12pt"><br>
</span></span></div><div><span style="font-size:12pt"><span style="font-weight:bold">Muhammad Yousaf</span></span></div><br><br><br><br><hr>Date: Sun, 5 Jun 2011 13:54:43 +0200<br>Subject: Re: [erlang-questions] Tool for performace evaluation<br>
From: <a href="mailto:spawn.think@gmail.com" target="_blank">spawn.think@gmail.com</a><br>To: <a href="mailto:muhammad.yousaf@live.com" target="_blank">muhammad.yousaf@live.com</a><br>CC: <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<br>.does your sorter:go involves creating a link? (using start_link, spawn_link, ... etc)<div>if yes, I believe this might be a bug in percept, as it doesn't tag the result messages and doesn't use a selective receive</div>
<div>as a workaround, try</div><div>spawn(percept, analyze, ["test.dat"]).</div><div><div>2011/6/5 Muhammad Yousaf <span dir="ltr"><<a href="mailto:muhammad.yousaf@live.com" target="_blank">muhammad.yousaf@live.com</a>></span><br>
<blockquote style="padding-left:1ex">
<div>
Hi ,<br><br>I am getting the follow error while running percept:profile<br><br><br>(<a href="mailto:client@127.0.0.1" target="_blank">client@127.0.0.1</a>)3> percept:profile("test.dat", {sorter, go, [5, 2000, 15]}, [procs]).<br>
Starting profiling.<br>ok<br><br>(<a href="mailto:client@127.0.0.1" target="_blank">client@127.0.0.1</a>)4> percept:analyze("test.dat").<br>Parsing: "test.dat" <br>Consolidating...<br>Parsed 443 entries in 0.015602 s.<br>
** exception error: bad argument<br> in function length/1<br> called as length({'EXIT',<0.56.0>,normal})<br> in call from percept:parse_and_insert_loop/5<br><br><br>and i am running Erlang R14B any idea how can i fix it and make it run?<br>
<br>Thanks<br><br><br><br><span style="font-family:Tahoma"><span style="font-size:12pt"><span style="font-style:italic">Regards,</span></span></span><div><span><span style="font-size:12pt"><br></span></span></div><div><span style="font-size:12pt"><span style="font-weight:bold">Muhammad Yousaf</span></span></div>
<br><br><br><br><hr>From: <a href="mailto:wsongcn@gmail.com" target="_blank">wsongcn@gmail.com</a><br>Date: Thu, 2 Jun 2011 21:27:19 +0800<br>To: <a href="mailto:spawn.think@gmail.com" target="_blank">spawn.think@gmail.com</a><br>
CC: <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>Subject: Re: [erlang-questions] Tool for performace evaluation<div><div></div><div><br><br>Great. Thanks.<br><br>
<div>2011/6/2 Ahmed Omar <span dir="ltr"><<a href="mailto:spawn.think@gmail.com" target="_blank">spawn.think@gmail.com</a>></span><br><blockquote style="padding-left:1ex">
As a note, you can start etop in text mode<div>etop:start([{output, text}]).<div><div></div><div><br><br><div>2011/6/2 Hynek Vychodil <span dir="ltr"><<a href="mailto:hynek@gooddata.com" target="_blank">hynek@gooddata.com</a>></span><br>
<blockquote style="padding-left:1ex">Try use -X option to your ssh command. Don't forget that X11 protocol<br>
forwarding is also permitted in sshd configuration (X11Forwarding<br>
option in sshd_config).<br>
<div><div></div><div><br>
On Tue, May 31, 2011 at 8:32 AM, Andy W. Song <<a href="mailto:wsongcn@gmail.com" target="_blank">wsongcn@gmail.com</a>> wrote:<br>
> I run Erlang on a remote machine through SSH. When I fire up etop it get:<br>
> 1> etop:start().<br>
> Application initialization failed: no display name and no $DISPLAY<br>
> environment variable<br>
> Error in startup script: no display name and no $DISPLAY environment<br>
> variable<br>
> while executing<br>
> "load /usr/lib/libtk8.4.so.0 Tk"<br>
> ("package ifneeded" script)<br>
> invoked from within<br>
> "package require Tk 8.3"<br>
> (file "/usr/lib/erlang/lib/gs-1.5.12/priv/gstk.tcl" line 7)<br>
> How can I use text mode?<br>
> Thanks<br>
> Andy<br>
> On Mon, May 23, 2011 at 8:26 PM, Gustav Simonsson<br>
> <<a href="mailto:gustav.simonsson@erlang-solutions.com" target="_blank">gustav.simonsson@erlang-solutions.com</a>> wrote:<br>
>><br>
>> etop:start().<br>
>><br>
>> gives information similar to 'top' in UNIX:<br>
>> <a href="http://www.erlang.org/doc/man/etop.html" target="_blank">http://www.erlang.org/doc/man/etop.html</a><br>
>><br>
>> Regards,<br>
>> Gustav Simonsson<br>
>><br>
>> ----- Original Message -----<br>
>> From: "Muhammad Yousaf" <<a href="mailto:muhammad.yousaf@live.com" target="_blank">muhammad.yousaf@live.com</a>><br>
>> To: <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
>> Sent: Monday, May 23, 2011 1:00:32 PM GMT +01:00 Amsterdam / Berlin / Bern<br>
>> / Rome / Stockholm / Vienna<br>
>> Subject: [erlang-questions] Tool for performace evaluation<br>
>><br>
>><br>
>> Hi,<br>
>><br>
>> Is there any tools to evaluate the performance of a module in Erlang that<br>
>> can show graphical interface for time elapse, memory usage, performance<br>
>> benchmarks etc ??<br>
>><br>
>> or is there any alternative to do this in Erlang<br>
>><br>
>> Thanks in advance<br>
>><br>
>> Regards,<br>
>><br>
>><br>
>> Muhammad Yousaf<br>
>><br>
>><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
>> _______________________________________________<br>
>> erlang-questions mailing list<br>
>> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
>> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
><br>
> --<br>
> ---------------------------------------------------------------<br>
> 有志者,事竟成,破釜沉舟,百二秦关终属楚<br>
> 苦心人,天不负,卧薪尝胆,三千越甲可吞吴<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
--Hynek (Pichi) Vychodil<br>
<br>
Analyze your data in minutes. Share your insights instantly. Thrill<br>
your boss. Be a data hero!<br>
Try GoodData now for free: <a href="http://www.gooddata.com" target="_blank">www.gooddata.com</a><br>
</font><div><div></div><div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div>
<div>Follow me on twitter</div>
<div><a href="http://twitter.com/#%21/spawn_think" target="_blank">@spawn_think</a></div><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div>---------------------------------------------------------------</div><div>有志者,事竟成,破釜沉舟,百二秦关终属楚</div><div>苦心人,天不负,卧薪尝胆,三千越甲可吞吴</div><br>
<br></div></div>_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a> </div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div><div>
<a href="http://twitter.com/#%21/spawn_think" target="_blank">@spawn_think</a></div><br>
</div> </div>
</div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div><div>
<a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div>