src/Pure/Build/build_benchmark.scala
changeset 79641 bc6033faa229
parent 79639 8b8591820bd8
child 79642 1b0668acf319
equal deleted inserted replaced
79640:7a2b86a48be0 79641:bc6033faa229
    22     val options = Options.Spec.eq("build_hostname", host.name) :: host.options
    22     val options = Options.Spec.eq("build_hostname", host.name) :: host.options
    23     ssh.bash_path(Isabelle_Tool.exe(isabelle_home)) + " build_benchmark" +
    23     ssh.bash_path(Isabelle_Tool.exe(isabelle_home)) + " build_benchmark" +
    24       Options.Spec.bash_strings(options, bg = true)
    24       Options.Spec.bash_strings(options, bg = true)
    25   }
    25   }
    26 
    26 
    27   def benchmark_requirements(options: Options, progress: Progress = new Progress()): Unit = {
    27   def benchmark_requirements(options: Options, progress: Progress = new Progress): Unit = {
    28     val res =
    28     val res =
    29       Build.build(
    29       Build.build(
    30         options.string.update("build_engine", Build.Default_Engine.name),
    30         options.string.update("build_engine", Build.Default_Engine.name),
    31         selection = Sessions.Selection(requirements = true, sessions = List(benchmark_session)),
    31         selection = Sessions.Selection(requirements = true, sessions = List(benchmark_session)),
    32         progress = progress, build_heap = true)
    32         progress = progress, build_heap = true)
    33     if (!res.ok) error("Failed building requirements")
    33     if (!res.ok) error("Failed building requirements")
    34   }
    34   }
    35 
    35 
    36   def benchmark(options: Options, progress: Progress = new Progress()): Unit = {
    36   def benchmark(options: Options, progress: Progress = new Progress): Unit = {
    37     val hostname = options.string("build_hostname")
    37     val hostname = options.string("build_hostname")
    38     val store = Store(options)
    38     val store = Store(options)
    39 
    39 
    40     using(store.open_server()) { server =>
    40     using(store.open_server()) { server =>
    41       using_optional(store.maybe_open_database_server(server = server)) { database_server =>
    41       using_optional(store.maybe_open_database_server(server = server)) { database_server =>