scala/scala — pull request #351 by dragos (2012-04-03 12:43:18+00:00)
Title: Added presentation memory leak test.

This test runs the presentation compiler 10 times over `Typers.scala` and records memory consumption. It uses a linear model to estimate memory consumption (a straight line that minimizes the distance between each point and the line). If the slope is above 1 (MB/typer run) the test fails.

There is some potential for flakiness, though a very similar test exists in the IDE nightlies for months now, and it never failed spuriously, while it did catch two memory leaks. I am willing to maintain and change or remove it if it turns out to be too unstable.