From d1803f981555834967c8164aa7dba45e96cd6569 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 9 Feb 2016 19:59:18 -0800 Subject: store render times in access log, RT#39822 --- htetc/handler.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'htetc/handler.pl') diff --git a/htetc/handler.pl b/htetc/handler.pl index 4bb214c98..920da3c97 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -6,6 +6,7 @@ use strict; use warnings; use FS::Mason qw( mason_interps ); use FS::Trace; +use FS::access_user_log; use FS::Conf; $FS::Conf::conf_cache_enabled = 1; # enable FS::Conf caching for performance @@ -65,6 +66,8 @@ sub handler #($r) = @_; my $r = shift; + my $start_time = time; + FS::Trace->log('protecting fds'); #from rt/bin/webmux.pl(.in) @@ -164,6 +167,8 @@ sub handler # ); # } + FS::access_user_log->insert_new_path( $r->filename, time-$start_time ); +\ FS::Trace->log('done'); FS::Trace->dumpfile( "%%%FREESIDE_EXPORT%%%/profile/$$.".time, -- cgit v1.2.1