https://kotlinlang.org logo
#compiler
Title
# compiler
m

murdock

08/12/2022, 11:58 PM
Hey folks, if anyone is looking for a simple compiler plugin, I created this one that essentially fires a callback at runtime, every time annotated function is called. Could be useful for debugging, analytics, compose etc.
👏 4
🔥 7
g

Grégory Lureau

08/16/2022, 9:00 AM
Thanks for your work! Do you know if this could be used to track Compose recomposition? I mean does it compatible knowing that Compose will also change the method content? If yes, it could mean generating report of runtime recomposition and be able to analyze after a run with performance issues 🤔
m

murdock

08/16/2022, 9:11 AM
I haven't tried it, but I see no reason why it wouldn't work. One of the core use cases I had in mind was supporting compose recompositions. Il try setting up the compose project and see how it works
Please report any issues if anything's broken 😉
Just to confirm, krang works with compose as well 😉
4 Views