biboudis / jmh-profilers

Pluggable profilers for JMH 1.8
MIT License
33 stars 10 forks source link

Parameter IDs should be sanitized before use in file names #5

Open retronym opened 9 years ago

retronym commented 9 years ago

I had the following in a benchmark:

@Param("foo/bar")
var path: String = null

This led to an IO error in FlightRecordingProfiler writing the .jfr file. I'd suggest to replaceAll("/", "_") in the ID to avoid this problem.