Do we have some kind of Performance Profile like A...
# compose-desktop
t
Do we have some kind of Performance Profile like Android for Compose for Desktop?
Here is the config i am using for continuous profiling, which has less than 1% overhead.
Copy code
compose.desktop {
    application {
        mainClass = "<http://your.App|your.App>"
        jvmArgs(
            "-XX:StartFlightRecording:settings=default,filename=/tmp/compose-rec.jfr",
            "-XX:FlightRecorderOptions:stackdepth=256",
        )
        nativeDistributions {
            targetFormats(Dmg, Exe, Deb)
            modules(
                "jdk.jfr",
                "jdk.management.jfr",
                "jdk.management.agent"
            )
        }
    }
}
t
sounds good but i was looking for something to see how often and when the UI is updating
s
Yeah, i think that requires some instrumentation support from the compose framework itself. If you want to print the FPS (to console), set the following system properties (
jvmArgs()
)
Copy code
"-Dskiko.fps.enabled=true",
"-Dskiko.fps.count=200"