From 87ce8b41ecd019ea283fa2757547b561568ebbc7 Mon Sep 17 00:00:00 2001 From: Jakub Narebski Date: Tue, 9 Feb 2010 14:22:15 +0100 Subject: [PATCH] gitweb: Profile caching support using Devel::NYTProf (WIP!) Signed-off-by: Jakub Narebski --- t/t9500-gitweb-standalone-no-errors.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh index 41c111977d..4aaada4924 100755 --- a/t/t9500-gitweb-standalone-no-errors.sh +++ b/t/t9500-gitweb-standalone-no-errors.sh @@ -648,14 +648,21 @@ $cache_options{'expires_in'} = -1; # never expire cache for tests EOF rm -rf cache +export PERL5OPT=-d:NYTProf +export NYTPROF="addpid=1:use_db_sub=1:savesrc=1:start=init:file=/tmp/jnareb/gitweb-caching.first.out" + test_expect_success \ 'caching enabled (project summary, first run)' \ 'gitweb_run "p=.git;a=summary"' test_debug 'cat gitweb.log' +export NYTPROF="addpid=1:use_db_sub=1:savesrc=1:start=init:file=/tmp/jnareb/gitweb-caching.second.out" + test_expect_success \ 'caching enabled (project summary, second run)' \ 'gitweb_run "p=.git;a=summary"' test_debug 'cat gitweb.log' +export PERL5OPT= + test_done -- 2.11.4.GIT