Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove testing code

  • Loading branch information...
commit bff7d28e9f30ab551f13a36c4025e4feaaf3d76e 1 parent 7ce7885
@stevegury authored
Showing with 9 additions and 4 deletions.
  1. +7 −2 project/build/Project.scala
  2. +2 −2 src/main/scala/Profiler.scala
View
9 project/build/Project.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)
+
}
View
4 src/main/scala/Profiler.scala
@@ -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) }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.