Skip to content

Commit e2337f7

Browse files
committed
Fix regexp to parse the build time from native-image
1 parent a2df5cf commit e2337f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/jt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,8 @@ def build_stats_native_binary_size(*args)
13881388

13891389
def build_stats_native_build_time(*args)
13901390
log = File.read('aot-build.log')
1391-
log =~ /\[total\]: (?<build_time>.+) ms/m
1392-
Float($~[:build_time].gsub(',', '')) / 1000.0
1391+
build_time = log[/\[truffleruby.*\].*\[total\]:\s*([0-9,.]+)\s*ms/, 1]
1392+
Float(build_time.gsub(',', '')) / 1000.0
13931393
end
13941394

13951395
def build_stats_native_runtime_compilable_methods(*args)

0 commit comments

Comments
 (0)