[K/N][perf] Added option to analyze benchmarks without DB connection
This commit is contained in:
@@ -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 <username>:<password>`) 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 <file1> <file2>
|
||||
|
||||
### Testing native
|
||||
|
||||
For a quick check use:
|
||||
|
||||
@@ -168,12 +168,16 @@ fun main(args: Array<String>) {
|
||||
val renders by argParser.option(ArgType.Choice<RenderType>(), 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))
|
||||
|
||||
Reference in New Issue
Block a user