Very interesting. TIL <https://youtu.be/SWBN0y0lFN...
# compose
c
Very interesting. TIL

https://youtu.be/SWBN0y0lFNY

👍🏼 1
👍 3
z
This is great, but does it work for you? The layout inspector is not having any of it for me 🤷🏽‍♂️
c
Haven't tried yet. I really haven't had any perf issues in the apps I've shipped.
f
me neither, I just tested and I'm not seeing the recomposition count
b
Are you using Dolphin?
It's in Dolphin+ sorry, the video doesn't mention that
Electric eel will also show you recomposition highlighting
a
I’m guessing it’s also not in the latest intellij either
f
I'm on EE
a
There’s a tool visibility icon to enable it afaik
It isn’t on by default
f
in the Layout Inspector window? or in the AS settings?
a
Layout inspector
f
I don't have that option, and I"m on EE. I wonder if we Linux users are getting the short end of the stick with these features.
b
What version of AGP are you using?
z
Same as @Francesc for me w/ Electric Eel 10 and Gradle 7.4.0-alpha10!
b
Hmm what about Compose version?
f
I'm on the 1.3.0 alpha 3
z
1.3.0-beta01
b
OK I am finding out more troubleshooting steps for you, thanks for giving it a go
Do you have multiple versions of studio open by any chance? Can you see any errors in logcat?
z
Just one studio, I see a lot of "presentDisplay display has no layers to compose, flushing client target buffer." but I dont know if its related to this? Thats basically my entire logcat currently.
c
I'm on latest compose, latest agp, and latest studio. all canaries/alphas, etc and this doesn't work for me.
f
doesn't work as in you don't see recomposition count or doesn't work as in you don't have the option to turn this on?
c
option doesn't show
f
so we're all on the same boat
a
I'm able to in my AS, but I doubt IJ works because it's out of sync
Are y'all on Linux?
c
maccc
f
linuxxx
a
I'm on macOS as well, but it definitely is working, that screenshot I posted was mine
I've had it for a little bit already iirc
I also use JB toolbox for version management
f
I'm on EE Canary 10, which is the latest at this time
b
What device are you all using? Or just using the emulator? The minimum API is 29
z
Im using an emulator, Pixel 3 API 33!
f
same here, emulator on 33
I just tried with a physical device and the option is still not present
c
Using physical device. pixel 6a with OS 13
b
OK here is another one, are you testing in debug? Layout inspector can only inspect debug builds
c
Yes
f
is this feature behind a flag with a staged rollout? there does not seem to be any other reason some of us wouldn't get it
b
No it shouldn't be
Can anyone please send me a screenshot of the "Show recomposition counts" not showing?
Awesome, thank you. This is on electric eel as well right?
z
🙏🏽 On Eel 10!
b
Could you also please send me your studio log? You can DM it to me. Help -> Show Log in finder
t
One thing that is hidden in some other issues too and not documented enough, you must not exclude *.version in the packaging options for the LayoutInspector to even start trying to do compose stuff (So no
Copy code
resources.excludes.add("META-INF/*.version")
j
Same for me. It doesn't show the recomposition count option (on a Mac, since you mentioned Linux). The only related logcat entry I found is this:
Copy code
Unable to open '/data/local/tmp/perfd/layoutinspector-view-inspection.dm': No such file or directory
b
@jannis would you be able to open a bug on our issue tracker with you idea.log file please? Help -> Show Log In Finder. I haven't seen that log before so maybe it will help us diagnose what is going on. https://issuetracker.google.com/issues?q=componentid:196607
j
Will do 👍 however this came from logcat. Not the InelliJ log
https://issuetracker.google.com/issues/246698640 I didn't have permissions to create the issue directly for the Layout Inspector 🤷‍♀️
b
Thank you! I will forward it on
z
I almost dont wanna report it because this seemed like such a wholesome moment 😅 But.. It does not work for me on the same flamingo release 🦩
c
Report!
j
I have no clue why, but it started working for me after using it once on an emulator. Afterwards it worked on my real device as well 🤷‍♀️