Skip to content

Commit

Permalink
Print stats continuously
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen committed Nov 19, 2015
1 parent 9f4a6b3 commit c4c0bfb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/src/ca/uwaterloo/flix/runtime/Solver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,19 @@ class Solver(implicit sCtx: Solver.SolverContext) {
worklist.push((rule, mutable.Map.empty))
}

var i = 0

// iterate until fixpoint.
while (worklist.nonEmpty) {
// extract fact from the worklist.
val (rule, env) = worklist.pop()
evalBody(rule, env)

if (i == 5000000) {
dataStore.stats()
i = 0
}
i = i + 1
}

// computed elapsed time.
Expand Down

0 comments on commit c4c0bfb

Please sign in to comment.