Skip to content

Commit 81fb886

Browse files
Add JMH profiler configuration support
Enable passing profilers via -Pjmh.profilers (e.g., 'gc' for memory profiling). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4b85a29 commit 81fb886

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ jmh {
228228
if (project.hasProperty('jmh.include')) {
229229
includes = [project.property('jmh.include')]
230230
}
231+
if (project.hasProperty('jmh.profilers')) {
232+
profilers = [project.property('jmh.profilers')]
233+
}
231234
warmupIterations = 2
232235
iterations = 3
233236
fork = 1

0 commit comments

Comments
 (0)