From 886fddee5995ca8a3dcac79ea03e8ce2b326692c Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Thu, 17 Oct 2024 13:37:44 -0400 Subject: [PATCH] Add script to analyze installer log for action run times --- bin/installer-profile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bin/installer-profile diff --git a/bin/installer-profile b/bin/installer-profile new file mode 100755 index 00000000..83aabbcb --- /dev/null +++ b/bin/installer-profile @@ -0,0 +1,24 @@ +#!/usr/bin/env ruby + +log = File.read(ARGV[0]) + +tasks = log.split("\n").select do |line| + line.include?('Evaluated in') +end + +profile = [] + +#2021-04-27 01:13:35 [DEBUG ] [configure] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: Evaluated in 86.60 seconds +tasks.each do |task| + EVALTRACE = %r{.+/(?.+\]): Evaluated in (?