Skip to content

Commit 0666a94

Browse files
authored
Merge pull request #56 from dwijnand/tweak-prof-command
Use Command.arb
2 parents 9642056 + be68a82 commit 0666a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def profParser(s: State): Parser[String] = {
102102
token("prof" ~> OptSpace) flatMap { _ => matched(s.combinedParser)} map (_.trim)
103103
}
104104

105-
commands += Command.custom((s: State) => Command.applyEffect(profParser(s))((line: String) => {
105+
commands += Command.arb(profParser)((s: State, line: String) => {
106106
val flameGraphOpts = s"--minwidth,1,--colors,java,--cp,--width,1800"
107107
abstract class Profiler(val name: String) {
108108
def command(outDir: File): String
@@ -129,7 +129,7 @@ commands += Command.custom((s: State) => Command.applyEffect(profParser(s))((lin
129129
List(line + " -jvmArgs -Dsun.reflect.inflationThreshold=0 " + prof.command(outDir) + s" -o ${(outDir / "jmh.log").getAbsolutePath} -rf json -rff ${(outDir / "result.json").getAbsolutePath}", BasicCommandStrings.FailureWall)
130130
}
131131
s.copy(remainingCommands = BasicCommandStrings.ClearOnFailure :: commands ++ s.remainingCommands)
132-
}))
132+
})
133133

134134

135135
def addJmh(project: Project): Project = {

0 commit comments

Comments
 (0)