https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Debugging_B2G_using_valgrind
Valgrind has been available on FxOS for a while now via magic incantation only known by few developers. To fix this, I've gone through MDN and updated the relevant entries, as well as adding documentation on how to build/run valgrind on the phone (Nexus 4 or similarly high spec phone only at the moment). 99% of the work is taken care of by the build system, so it's mostly just adding a flag to .userconfig and you're ready to go. It's a great way of finding possible memory/threading issues in the system, and seems to work fine across multiple processes. It's also a great way to make yourself look awesome by filing a ton of bugs about new/delete mismatches and uninitialized values. :) I've also added instructions to update the repos and scripts just in case someone else feels like helping on management. It's a somewhat complex system, but hopefully the documentation will help. I've been a bit lax on updates lately but am trying to get back into the habit, as well as looking at upstreaming what we can to the main repos. If anyone has any questions, feel free to ask here or find me on IRC (I'm qDot). _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
