kmaehashi / XojoInstruments

:negative_squared_cross_mark: Memory Leak Detector for Xojo
https://forum.xojo.com/t/41487
MIT License
21 stars 2 forks source link

Support Console and Web #19

Open kmaehashi opened 6 years ago

kmaehashi commented 6 years ago

Related to #9.

Console & Web support seems straightforward: https://forum.xojo.com/45314-xojo-instruments-diagnostic-tool-for-memory-leaks-and-circular-/p1#p396524 ~iOS support requires some rewrite around WeakRef and other code using old-framework.~

kmaehashi commented 5 years ago

~I wrote the initial prototype for Web. https://gist.github.com/kmaehashi/990cc0e4965187fc584a94ef40a9d7ba~

kmaehashi commented 4 years ago

iOS does not support Runtime.IterateObjects().

piradoiv commented 2 years ago

Hi @kmaehashi, this project looks really good, do you still need/want some help with the Web support?

kmaehashi commented 2 years ago

Thanks for the feedback, @piradoiv! Yes, I'm still looking for help regarding the Web support.

Currently, XojoInstruments's core component (that keeps track of object lifecycle) is tightly coupled with the Desktop GUI. I think the first step would be to separate them. I started working on that in #55 but it's been there due to lack of time... Then implement RPC between the core and the GUI, so that the GUI can remotely connect to the XojoInstruments's session running remotely inside the Web app.

piradoiv commented 2 years ago

I’ve been playing a bit with this and seems like it is doable. Your classes are compiling perfectly fine with Web 2 projects 😊

Managed to capture and display some results of the Summary tab already.

Let me dig a bit more and I’ll ping you with an example project, to see if I’m on the right path.

kmaehashi commented 2 years ago

Great! Looking forward to seeing the pull request 😄

kmaehashi commented 2 years ago

@piradoiv I just saw the post on the forum, congratulations on joining the team! 🎉

piradoiv commented 2 years ago

Thank you @kmaehashi!, happy to be part of the Xojo family 😊