Thanks Ivan.<br>Regards,<br>Kashyap<br><br><div class="gmail_quote">On Wed, Jun 9, 2010 at 4:40 AM, Ivan Lazar Miljenovic <span dir="ltr"><<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">C K Kashyap <<a href="mailto:ckkashyap@gmail.com">ckkashyap@gmail.com</a>> writes:<br>
<br>
> Hi,<br>
> I have a call grah which contains information of the edges in the following<br>
> format<br>
><br>
> caller callee count (time spent by the<br>
> caller)<br>
> ===================================<br>
> foo bar 10 100<br>
> xxx yyy 20 10<br>
> zzz yyy 10 10<br>
><br>
> (I used pintool <a href="http://pintool.org" target="_blank">pintool.org</a> to generate this call graph)<br>
><br>
> Now, the problem is that the graph is huge and it take a long to render<br>
> using 'dot' or use any visualizing tool.<br>
> Even if they render, it's too cluttered to be useful.<br>
> I wanted to prune the graph in such a way that I'd have only the edges<br>
> corresponding to the top 10% of the<br>
> time consumers. What would be a good way to do such a thing? Has anyone<br>
> written some utility that I could use?<br>
<br>
</div></div>Well, graphviz [1] lets you parse Dot code, so you could then do a<br>
filter on it (I'm currently working on ways of letting you interact with<br>
the Dot code better).<br>
<br>
[1]: <a href="http://hackage.haskell.org/package/graphviz" target="_blank">http://hackage.haskell.org/package/graphviz</a><br>
<br>
Also, to let you skip a step prof2dot [2] will create the Dot code for you.<br>
<br>
[2]: <a href="http://hackage.haskell.org/package/prof2dot" target="_blank">http://hackage.haskell.org/package/prof2dot</a><br>
<font color="#888888"><br>
--<br>
Ivan Lazar Miljenovic<br>
<a href="mailto:Ivan.Miljenovic@gmail.com">Ivan.Miljenovic@gmail.com</a><br>
<a href="http://IvanMiljenovic.wordpress.com" target="_blank">IvanMiljenovic.wordpress.com</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Kashyap<br>