<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar, 4 abr 2023 a las 12:53, Simon Ser (<<a href="mailto:contact@emersion.fr">contact@emersion.fr</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday, April 4th, 2023 at 12:46, Guillermo Rodriguez Garcia <<a href="mailto:guille.rodriguez@gmail.com" target="_blank">guille.rodriguez@gmail.com</a>> wrote:<br>
<br>
> One further question: before posting this here, I was trying to verify<br>
> this by myself, and was wondering whether there is some sort of tool<br>
> that can be used to monitor resources currently in use in a Wayland<br>
> server. Does such a tool exist?<br>
<br>
I'm not aware of any. There is wlhax [1] which can be used to track<br>
which protocol objects are alive for a given client. There is the<br>
standard tooling to monitor allocated memory for a process. But I don't<br>
know of any tool to monitor Wayland objects in a server specifically.<br>
<br>
[1]: <a href="https://git.sr.ht/~kennylevinsen/wlhax" rel="noreferrer" target="_blank">https://git.sr.ht/~kennylevinsen/wlhax</a></blockquote><div><br></div><div>Thank you for the pointer! This is nice.</div><div><br></div><div>Out of curiosity, for objects that are only released when a client disconnects (such as wl_registry), how does the Wayland server know how to release this if the client does not disconnect explicitly. in other words how is the resource leak on the server side avoided if the client just exits and the OS cleans up?</div></div><br clear="all"><div>Thanks again,</div><br><div dir="ltr" class="gmail_signature">Guillermo Rodriguez Garcia<br><a href="mailto:guille.rodriguez@gmail.com" target="_blank">guille.rodriguez@gmail.com</a></div></div>