src/Pure/Admin/build_status.scala
changeset 78608 0e01c3b55b63
parent 78352 10f8f12c61b0
child 78849 df162316b6a7
equal deleted inserted replaced
78607:3f3add5eef91 78608:0e01c3b55b63
   194     maximum_stack: Space,
   194     maximum_stack: Space,
   195     average_stack: Space,
   195     average_stack: Space,
   196     maximum_heap: Space,
   196     maximum_heap: Space,
   197     average_heap: Space,
   197     average_heap: Space,
   198     stored_heap: Space,
   198     stored_heap: Space,
   199     status: Build_Log.Session_Status.Value,
   199     status: Build_Log.Session_Status,
   200     errors: List[String]
   200     errors: List[String]
   201   ) {
   201   ) {
   202     val date: Long = (afp_pull_date getOrElse pull_date).unix_epoch
   202     val date: Long = (afp_pull_date getOrElse pull_date).unix_epoch
   203 
   203 
   204     def finished: Boolean = status == Build_Log.Session_Status.finished
   204     def finished: Boolean = status == Build_Log.Session_Status.finished
   321                   maximum_stack = Space.B(ml_stats.maximum(ML_Statistics.STACK_SIZE)),
   321                   maximum_stack = Space.B(ml_stats.maximum(ML_Statistics.STACK_SIZE)),
   322                   average_stack = Space.B(ml_stats.average(ML_Statistics.STACK_SIZE)),
   322                   average_stack = Space.B(ml_stats.average(ML_Statistics.STACK_SIZE)),
   323                   maximum_heap = Space.B(ml_stats.maximum(ML_Statistics.HEAP_SIZE)),
   323                   maximum_heap = Space.B(ml_stats.maximum(ML_Statistics.HEAP_SIZE)),
   324                   average_heap = Space.B(ml_stats.average(ML_Statistics.HEAP_SIZE)),
   324                   average_heap = Space.B(ml_stats.average(ML_Statistics.HEAP_SIZE)),
   325                   stored_heap = Space.bytes(res.long(Build_Log.Data.heap_size)),
   325                   stored_heap = Space.bytes(res.long(Build_Log.Data.heap_size)),
   326                   status = Build_Log.Session_Status.withName(res.string(Build_Log.Data.status)),
   326                   status = Build_Log.Session_Status.valueOf(res.string(Build_Log.Data.status)),
   327                   errors =
   327                   errors =
   328                     Build_Log.uncompress_errors(
   328                     Build_Log.uncompress_errors(
   329                       res.bytes(Build_Log.Data.errors), cache = store.cache))
   329                       res.bytes(Build_Log.Data.errors), cache = store.cache))
   330 
   330 
   331               val sessions = data_entries.getOrElse(data_name, Map.empty)
   331               val sessions = data_entries.getOrElse(data_name, Map.empty)