<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/24/2012 11:07 PM, Antonio SJ
Musumeci wrote:<br>
</div>
<blockquote
cite="mid:CAB3-ZyTXCWpwGvncjvkYCi1JZJeZt0BXo0e-Uxf8JxG9OeuskA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<p>Is there any way to find out what processes are referencing
what binaries? Or at least a list of binaries and their
reference count such as Funs in a crash dump? It seems like the
dump contains references to binary data ("=binary:xxxxxxx") but
this is not referred to in the crash dump doc. </p>
</blockquote>
Not in the crash dump, but in a living system you could do:<br>
[erlang:process_info(P,binary) || P <- erlang:processes()].<br>
(or something like it) Each tuple in the lists of binaries for a
process contains the actual pointer, she size and the reference
counter (in that order). At least it does so in current releases.
The binary info tuple is deliberately not defined (<a class="moz-txt-link-freetext" href="http://www.erlang.org/doc/man/erlang.html#process_info-2">http://www.erlang.org/doc/man/erlang.html#process_info-2</a>)<br>
<blockquote
cite="mid:CAB3-ZyTXCWpwGvncjvkYCi1JZJeZt0BXo0e-Uxf8JxG9OeuskA@mail.gmail.com"
type="cite">
<p>Thanks. </p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
Cheers,<br>
/Patrik<br>
<blockquote
cite="mid:CAB3-ZyTXCWpwGvncjvkYCi1JZJeZt0BXo0e-Uxf8JxG9OeuskA@mail.gmail.com"
type="cite">
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>