Permalink
Browse files

Remove testing code

  • Loading branch information...
1 parent 7ce7885 commit bff7d28e9f30ab551f13a36c4025e4feaaf3d76e @stevegury committed Aug 1, 2011
Showing with 9 additions and 4 deletions.
  1. +7 −2 project/build/Project.scala
  2. +2 −2 src/main/scala/Profiler.scala
@@ -16,7 +16,12 @@ class Project(info: ProjectInfo) extends DefaultProject(info) with IdeaProject {
}.dependsOn(compile)
- lazy val profiler = task {
- runTask( Some("Profiler"), runClasspath, List("D:/jstack.log")).run
+ lazy val profiler = task { args =>
+ profilerConstructor( args(0) )
+ }
+
+ def profilerConstructor( fileName : String ) = task {
+ runTask( Some("Profiler"), runClasspath, fileName).run
}.dependsOn(compile)
+
}
@@ -150,8 +150,8 @@ object Profiler {
callstack.forall{ _.name.contains(word) } && callstack.reverse.head.state == TimedWaiting
}
val profilingPerThread = profileThread( Source.fromFile(file).getLines() )
- val mergedProfiling = profilingPerThread.values.reduceLeft{ _.merge(_) }.filter( filter("YJP") ).get
- mergedProfiling.criticalPath.foreach{ x => println(" + "+x) }
+ val mergedProfiling = profilingPerThread.values.reduceLeft{ _.merge(_) }
+ mergedProfiling.criticalPath.foreach{ x => println(" + " + x) }
}
}

0 comments on commit bff7d28

Please sign in to comment.