src/Pure/ML/ml_profiling.scala
changeset 73839 0638fa8c01bc
parent 73836 690fdc14f7fb
child 73840 a5200fa7cb4c
equal deleted inserted replaced
73838:0e6a5a6cc767 73839:0638fa8c01bc
    30     def total: Entry = Entry("TOTAL", entries.iterator.map(_.count).sum)
    30     def total: Entry = Entry("TOTAL", entries.iterator.map(_.count).sum)
    31 
    31 
    32     def print: String =
    32     def print: String =
    33     {
    33     {
    34       (if (kind == "time_thread") "time profile (single thread)" else kind + " profile") +
    34       (if (kind == "time_thread") "time profile (single thread)" else kind + " profile") +
    35         (entries ::: List(total)).map(_.print).mkString(":\n", "\n", "\n")
    35         (entries ::: List(total)).map(_.print).mkString(":\n", "\n", "")
    36     }
    36     }
    37   }
    37   }
    38 
    38 
    39   def account(reports: List[Report]): List[Report] =
    39   def account(reports: List[Report]): List[Report] =
    40   {
    40   {