Skip to content

Commit 7b99270

Browse files
committed
CPUSampler samples are by default equal to 1ms
1 parent 051558e commit 7b99270

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/jt.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,8 @@ def profile(*args)
18861886
}
18871887
end
18881888
raw_sh "#{repo}/stackcollapse-graalvm.rb", profile_data_file, out: flamegraph_data_file
1889-
raw_sh "#{repo}/flamegraph.pl", flamegraph_data_file, out: svg_filename
1889+
unit = args.any?(/^--cpusampler\.Period=/) ? [] : ['--countname', 'ms']
1890+
raw_sh "#{repo}/flamegraph.pl", *unit, flamegraph_data_file, out: svg_filename
18901891

18911892
app_open svg_filename
18921893
end

0 commit comments

Comments
 (0)