diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 19:59:20 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 19:59:20 -0800 |
commit | 4b51d95adb7a3625d462cb60e4cb733749584d0a (patch) | |
tree | 6bc63a048c1d2ff04ddcec4913e8c575414d30c1 /htetc/handler.pl | |
parent | 7dc1892708ae997e380cbfa0232e51b5a3b59739 (diff) |
store render times in access log, RT#39822
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r-- | htetc/handler.pl | 5 |
1 files changed, 5 insertions, 0 deletions
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, |