X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FFormat.pm;h=6d6bd8fd1fc8e8f1ce03a2866743fc632e4df222;hp=d5560db420622331cef2c9206926718f10ab50e5;hb=34cc90c9aa31c1cad1fcef0684e940407426ad1d;hpb=7e81b08a1d0e7efe4545a529c0bc031ef84fdf3c diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index d5560db..6d6bd8f 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -14,9 +14,10 @@ use File::Slurp qw/read_file write_file/; use List::MoreUtils qw/natatime/; use Log::Log4perl qw/get_logger/; use String::ShellQuote qw/shell_quote/; +use Time::HiRes qw/time/; use Try::Tiny; -our $VERSION = '5999.000_004'; +our $VERSION = '5999.000_005'; our @EXPORT_OK = qw/prepare_files stopvms/; ################################################## @@ -51,6 +52,7 @@ sub execlist_finish { kill KILL => $pid{$vm} if $kill; waitpid $pid{$vm}, 0; } + write_file "time-stop-$vm", time; return if $kill; my $er = "exec-result-$vm"; @@ -64,6 +66,7 @@ sub execlist_finish { sub execlist { my ($vm, @args) = @_; + write_file "time-start-$vm", time; my $er = "exec-result-$vm"; if ($vm{$vm}) { my $cmd = ">$er " . shell_quote 'gruntmaster-exec', @args;