From 46c38579e613c4a7ae42434d5d1f833f4369f6b5 Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Thu, 29 Nov 2012 08:53:10 +0000 Subject: [PATCH] Script analyse logs produits par le plugin System --- .gitattributes | 1 + scripts/top_10_slow_request.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100755 scripts/top_10_slow_request.sh diff --git a/.gitattributes b/.gitattributes index f3761f0c7ab..3aeac0a8919 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4497,6 +4497,7 @@ scripts/iosrd.sh -text scripts/opac2.sql -text scripts/opac3.el -text scripts/svn-export.sh -text +scripts/top_10_slow_request.sh -text tests/.htaccess -text tests/TestXPathFactory.php -text tests/application/modules/AbstractControllerTestCase.php -text diff --git a/scripts/top_10_slow_request.sh b/scripts/top_10_slow_request.sh new file mode 100755 index 00000000000..ae15e315e3e --- /dev/null +++ b/scripts/top_10_slow_request.sh @@ -0,0 +1,2 @@ +#!/bin/sh +grep -o "\/[^?]\+?[^&]\+" $1|sort|uniq -c|sort|tail -n 10 -- GitLab