diff -r 5414c14c3984 -r c103358a5559 src/Pure/ML/ml_statistics.scala --- a/src/Pure/ML/ml_statistics.scala Wed May 17 11:53:16 2017 +0200 +++ b/src/Pure/ML/ml_statistics.scala Wed May 17 13:47:19 2017 +0200 @@ -22,10 +22,10 @@ final case class Entry(time: Double, data: Map[String, Double]) - def apply(session_name: String, ml_statistics: List[Properties.T]): ML_Statistics = - new ML_Statistics(session_name, ml_statistics) + def apply(ml_statistics: List[Properties.T], heading: String = ""): ML_Statistics = + new ML_Statistics(ml_statistics, heading) - val empty = apply("", Nil) + val empty = apply(Nil) /* standard fields */ @@ -65,7 +65,7 @@ List(tasks_fields, workers_fields, heap_fields) } -final class ML_Statistics private(val session_name: String, val ml_statistics: List[Properties.T]) +final class ML_Statistics private(val ml_statistics: List[Properties.T], val heading: String) { val Now = new Properties.Double("now") def now(props: Properties.T): Double = Now.unapply(props).get @@ -142,7 +142,7 @@ GUI_Thread.later { new Frame { iconImage = GUI.isabelle_image() - title = session_name + title = heading contents = Component.wrap(new ChartPanel(c)) visible = true }