metricsDestination
Save Compose build metrics to this folder.
When specified, the Compose compiler will dump metrics about the current module, which can be useful when manually optimizing your application's runtime performance. The module.json file will include the statistics about processed composables and classes, including number of stable classes/parameters, skippable functions, and so on.
To distinguish metrics files for different KotlinTargets, the plugin uses a special subdirectory structure based on KotlinTarget.disambiguationClassifier/KotlinCompilation.compilationName values. For example, the following Kotlin multiplatform project configuration registers the JVM target with a custom compilation:
kotlin {
jvm {
compilations.register("custom")
}
}
The Compose plugin uses this value to create the following subdirectory structure:
<metricsDestination-value>/jvm/main
<metricsDestination-value>/jvm/custom
For more information, see these links: