diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-13 16:38:03 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-13 16:38:03 +0000 |
commit | 01141595e9ad642f3f0ddf87df96706719ea8c19 (patch) | |
tree | 8fa1658d0a3bf2d979ca8b69223ea33292deff39 /src | |
parent | 89ceefb74749c1d4401f1650a67c6f9d09a67607 (diff) | |
download | scala-01141595e9ad642f3f0ddf87df96706719ea8c19.tar.gz scala-01141595e9ad642f3f0ddf87df96706719ea8c19.tar.bz2 scala-01141595e9ad642f3f0ddf87df96706719ea8c19.zip |
Fix to bitrot in profiling code.
Diffstat (limited to 'src')
-rw-r--r-- | src/yourkit/scala/tools/util/YourkitProfiling.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yourkit/scala/tools/util/YourkitProfiling.scala b/src/yourkit/scala/tools/util/YourkitProfiling.scala index fb07eb1101..677a85112b 100644 --- a/src/yourkit/scala/tools/util/YourkitProfiling.scala +++ b/src/yourkit/scala/tools/util/YourkitProfiling.scala @@ -26,7 +26,7 @@ class YourkitProfiling extends Profiling { return active = true - daemonize(true) { + daemonize { try { controller.startCPUProfiling(ProfilingModes.CPU_SAMPLING, Controller.DEFAULT_FILTERS) if (freq.isDefined) @@ -39,7 +39,7 @@ class YourkitProfiling extends Profiling { } def captureSnapshot() = { - daemonize(true)(controller.captureSnapshot(ProfilingModes.SNAPSHOT_WITH_HEAP)) + daemonize(controller.captureSnapshot(ProfilingModes.SNAPSHOT_WITH_HEAP)) } def stopProfiling() = { |