diff --git a/kotlin-native/HACKING.md b/kotlin-native/HACKING.md index 376762f4dc8..a3d92a7f6e0 100644 --- a/kotlin-native/HACKING.md +++ b/kotlin-native/HACKING.md @@ -250,6 +250,10 @@ Other developer tools also can use generated compilation database, but then `cla Pay attention, user and password information(with flag `-u :`) should be provided to get data from TeamCity. + By default analyzing tool splits benchmarks into stable and unstable taking information from database. If you have no connection to inner network please use `-f` flag. + + ./benchmarksAnalyzer.kexe -f + ### Testing native For a quick check use: diff --git a/kotlin-native/tools/benchmarksAnalyzer/src/main/kotlin/main.kt b/kotlin-native/tools/benchmarksAnalyzer/src/main/kotlin/main.kt index 0e8b7e9b15a..7ebbab7578f 100644 --- a/kotlin-native/tools/benchmarksAnalyzer/src/main/kotlin/main.kt +++ b/kotlin-native/tools/benchmarksAnalyzer/src/main/kotlin/main.kt @@ -168,12 +168,16 @@ fun main(args: Array) { val renders by argParser.option(ArgType.Choice(), shortName = "r", description = "Renders for showing information").multiple().default(listOf(RenderType.TEXT)) val user by argParser.option(ArgType.String, shortName = "u", description = "User access information for authorization") + val flatReport by argParser.option(ArgType.Boolean, "flat", "f", "Generate fflat report without splitting into stable and unstable becnhmarks") + .default(false) argParser.parse(args) // Get unstable benchmarks. - val unstableBenchmarks = DBServerConnector.getUnstableBenchmarks() + val unstableBenchmarks = if (!flatReport) DBServerConnector.getUnstableBenchmarks() else null - unstableBenchmarks ?: println("Failed to get access to server and get unstable benchmarks list!") + unstableBenchmarks ?: + if (!flatReport) + println("Failed to get access to server and get unstable benchmarks list!") // Read contents of file. val mainBenchsReport = mergeReportsWithDetailedFlags(getBenchmarkReport(mainReport, user))