From d6247e9a8832c82054ff1b97e78a87bf136ca0fd Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 6 Nov 2011 06:08:55 +0100 Subject: [PATCH] run opac search under NYTProf http://bugs.koha-community.org/show_bug.cgi?id=7177 --- misc/nytprof-opac-search.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) create mode 100755 misc/nytprof-opac-search.sh diff --git a/misc/nytprof-opac-search.sh b/misc/nytprof-opac-search.sh new file mode 100755 index 0000000..04113ad --- /dev/null +++ b/misc/nytprof-opac-search.sh @@ -0,0 +1,11 @@ +#!/bin/sh -x + +timestamp=`date +%Y-%m-%dT%H:%M:%S` + +sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' + +perl -d:NYTProf ./opac/opac-search.pl q=human > /tmp/search.$timestamp + +test -d nytprof && mv nytprof nytprof.$timestamp + +nytprofhtml -- 1.7.2.5