<https://chrisbanes.me/posts/composable-metrics/> ...
# compose
i
https://chrisbanes.me/posts/composable-metrics/ can this be run on compose multiplatform?
j
Yes, the compiler is exactly the same
i
oh good, I am going to try it when I get a chance.
s
For KMP you can configure it like this
Copy code
compose {
    val buildDir = layout.buildDirectory.get().asFile.absolutePath

    // <https://github.com/androidx/androidx/blob/androidx-main/compose/compiler/design/compiler-metrics.md>
    kotlinCompilerPluginArgs.addAll(
        "reportsDestination=$buildDir",
        "metricsDestination=$buildDir"
    )
}