Skip to content

Commit

Permalink
JPERF-1390 Log extraParams deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dagguh committed Oct 11, 2023
1 parent da9d5df commit ac4a53b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Dropping a requirement of a major version of a dependency is a new contract.
- `jfr` and `flamegraph` for convenience
- `startParams` and `stopParams` for extensibility

### Deprecated
- Deprecate `AsyncProfiler.Builder.extraParams` in favor of `startParams` due to ambiguity with `stopParams`.

[JPERF-1390]: https://ecosystem.atlassian.net/browse/JPERF-1390

## [4.27.0] - 2023-10-09
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class AsyncProfiler private constructor(
this.startParams.addAll(startParams)
}

fun stopParams(vararg extraParams: String) = apply {
this.stopParams.addAll(extraParams)
fun stopParams(vararg stopParams: String) = apply {
this.stopParams.addAll(stopParams)
}

fun build(): Profiler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AsyncProfilerIT {

// then
val profilerResult = RemotePath(sshClient.host, process.getResultPath())
.download(createTempFile("profiler-result", ".svg"))
.download(createTempFile("profiler-result", ".tmp"))
resultAssert(profilerResult)
}
}
Expand Down

0 comments on commit ac4a53b

Please sign in to comment.