summaryrefslogtreecommitdiff
path: root/src/yourkit
Commit message (Collapse)AuthorAgeFilesLines
* Some profiler changes.Paul Phillips2011-01-041-11/+34
| | | | | | | | | | | after each phase, so all the allocations are partitionable by phase in the profiler. I also changed the name of -Yprofile-resident to -Yprofile-memory and had it snapshot after the run instead of between them, so it is usable for regular scalac usage as well. Added tools/profile_scalac which can be used as a drop-in replacement which handles some tedious setup. Review by dragos.
* Added advanceGeneration for memory profiling, a...Iulian Dragos2010-12-161-0/+4
| | | | | | Added advanceGeneration for memory profiling, and resident-mode profile option. review by extempore.
* Some profiling infrastructure.Paul Phillips2010-11-161-0/+36
I avoided creating any dependency on yourkit. In addition, there was no way to give arguments to the JVM without losing the ones defined in ANT_OPTS, which has been a massive pain for a while. So there is now "jvm.opts" which is simply appended to ANT_OPTS, e.g. % ant -Djvm.opts=-verbose [echo] Forking with JVM opts: -Xms1536M -Xmx2g -Xss1M -XX:MaxPermSize=192M -XX:+UseParallelGC -verbose There is a minimal stub defining a profiler interface: scala.tools.util.Profiling Then the yourkit wrapper implements that interface. Once your locker has been rebuilt once, you can do this: ant yourkit.run And it will build quick.lib/comp with profiling enabled, assuming it can find the necessary files. See the yourkit.init target for values to change: or ant -Dyourkit.home=/path/to/it might be enough. Review by dragos.