<div dir="ltr">I wrote a blog post time ago explaining a simple usage of fprof to discover possible bottlenecks, maybe it can help you getting started.<br><a href="http://blog.process-one.net/optimizing-erlang-applications-emysql/">http://blog.process-one.net/optimizing-erlang-applications-emysql/</a><br>
<br> fprof is only one of many available profiling tools,  each has different trade-offs. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 31 July 2014 12:15, Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com" target="_blank">dmkolesnikov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I am using <a href="https://github.com/virtan/eep" target="_blank">https://github.com/virtan/eep</a></div>
<div><br></div><div>- Dmitry</div><div><br></div><div><br><div><div><div class="h5"><div>On 31 Jul 2014, at 15:02, Giovanni Giorgi <<a href="mailto:jj@gioorgi.com" target="_blank">jj@gioorgi.com</a>> wrote:</div><br>
</div></div><blockquote type="cite"><div><div class="h5">
<div style="font-size:10pt"><p>Hi all,</p><p> I am writing a code indexer called er_zaueker: it is based on erlang and redis: <a href="https://github.com/daitangio/er_zauker" target="_blank">https://github.com/daitangio/er_zauker</a></p>
<div> <br></div><p>It is also my "erlang learning project".</p><p>I am trying to optimize it.</p><p>What are the OTP API I can use to find out where is spent much of the time?</p><p>I need an aggregate timing value to find the slowest functions.</p>
<p><span style="font-size:12px">er_zauker breaks the files in "trigram" and push them to redis. This part is done sequentially on a single file, whereas file processing is spread via a lot of processes. </span></p>
<p><span style="font-size:12px">The entire work is higly I/O bound, but I hope to break the 10 files per second barrier soon.</span></p><p><span style="font-size:12px">I'd like tu understang if it make sense to have more processes per single file.</span></p>
<p>To collect trigram I am using the sets module, but I think R17 maps could be even more fast.</p><div> <br></div>
<div>
<pre>---
Gio's Blog <a href="http://gioorgi.com" target="_blank">http://gioorgi.com</a></pre>
</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>
</blockquote></div><br></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>Pablo Polvorin<br>ProcessOne
</div>