Skip to content

Commit

Permalink
Remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegury committed Aug 1, 2011
1 parent 7ce7885 commit bff7d28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions project/build/Project.scala
Expand Up @@ -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)

}
4 changes: 2 additions & 2 deletions src/main/scala/Profiler.scala
Expand Up @@ -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) }
}
}

Expand Down

0 comments on commit bff7d28

Please sign in to comment.