Tomáš Mlynarič
mlykotom.dev
Tomáš Mlynarič
@mlykotom.dev
DevRel @Google. Working on KMP, previously Jetpack Compose Performance.
It's available from Android 14 (SDK 34). You need to enable AIDL calls if you want to get it purely with Perfetto. Macrobenchmark enables it automatically.
September 22, 2025 at 8:43 AM
This effectively removes the runtime cost of running the JVM verification, which happens only for debuggable apps.

The results were promising, but overshadowed by interpreter improvements on Android 15.

Release apps are always completely verified during app install.
September 19, 2025 at 1:19 PM
One of the things we tried improving for debug builds (not for measuring performance though) was to allow skipping JVM verification that was taking significant time at runtime on debuggable apps.

This can be enabled in Studio Canaries - "Skip bytecode verification for debuggable apps..".
September 19, 2025 at 1:13 PM
Yeah, I wasn't very happy about this advice, but back then there was no other choice.

Thankfully that's changed for some time. You can get information about the binder transaction from the binder reply.

It' automatically enabled in stable Macrobenchmark versions.
September 19, 2025 at 1:05 PM
Thanks for the comments! (omg, I'm ashamed it took me 2 weeks to reply)
September 19, 2025 at 12:57 PM
I see! For some reason I thought that you're mocking the responses from within the app to prevent any network latency. I did that in the past for testing purposes. We had a bunch of JSON responses in the assets that were returned by intercepting requests.
May 27, 2025 at 6:15 PM
That means that you're shipping the mock server with the actual app? (I don't know whether R8 is smart enough to remove it from the app, maybe it is)
May 26, 2025 at 8:04 AM
How do you mock it? Do you have a custom interceptor in the benchmark buildType sourceSet?
May 24, 2025 at 9:50 AM
You weren't supposed to notice it for a week! 😄
May 14, 2025 at 6:56 AM
My laptop just said it needs a system update. I hope it'll be forced during the stream 😅
December 18, 2024 at 4:31 PM