scala/scala — pull request #996 by gkossakowski (2012-07-26 09:57:13+00:00)
Title: Partest instrumentation fixes

Instrument all classes in `instrumented` package.
Extend instrumenting infrastructure to instrument
classes in `instrumented` package. This is useful
because very often you need to put your classes
into non-empty package. E.g. inliner doesn't work
properly with empty package at the moment so in
order to test any behaviour we need to put classes
in some other package that is instrumented.

Added testing code for that to instrumentation
test-case.

---

Fix `Instrumentation.getStatistics` method in partest.
The previous implementation was wrong because it
would always enable profiling after call to
`Instrumenation.getStatistics` method. Now we are
checking the profiling status and enable it again
only when it was enabled before.

Review by @phaller.