src/Pure/Tools/profiling_report.scala
changeset 75780 f49c4f160b84
parent 75779 5470c67bd772
child 75791 fb12433208aa
equal deleted inserted replaced
75779:5470c67bd772 75780:f49c4f160b84
    16     progress: Progress = new Progress
    16     progress: Progress = new Progress
    17   ): Unit = {
    17   ): Unit = {
    18     val store = Sessions.store(options)
    18     val store = Sessions.store(options)
    19 
    19 
    20     using(Export.open_session_context0(store, session)) { session_context =>
    20     using(Export.open_session_context0(store, session)) { session_context =>
    21       session_context.db_context.database(session)(db => Some(store.read_theories(db, session)))
    21       session_context.session_db().map(db => store.read_theories(db, session)) match {
    22       match {
       
    23         case None => error("Missing build database for session " + quote(session))
    22         case None => error("Missing build database for session " + quote(session))
    24         case Some(used_theories) =>
    23         case Some(used_theories) =>
    25           theories.filterNot(used_theories.toSet) match {
    24           theories.filterNot(used_theories.toSet) match {
    26             case Nil =>
    25             case Nil =>
    27             case bad => error("Unknown theories " + commas_quote(bad))
    26             case bad => error("Unknown theories " + commas_quote(bad))