[Patches] [PATCH] run opac search under NYTProf
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Sun Nov 6 20:00:03 NZDT 2011
From: Dobrica Pavlinusic <dpavlin at rot13.org>
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
More information about the Patches
mailing list