summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-14 17:50:03 +0200
committerPaul Buetow <paul@buetow.org>2013-04-14 17:50:03 +0200
commit6ec996fb7fce8c31c92d1566bfce8a46c0e0da36 (patch)
tree8df29601098eee187bf51c505d184970f3dcdbf5 /Makefile
parent52a66a503d77c150b6a778305e5569517fe88c29 (diff)
add profiling target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ec553e1..5e44f7d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@ NAME=loadbars
all: version documentation perltidy
version:
cut -d' ' -f2 debian/changelog | head -n 1 | sed 's/(//;s/)//' > .version
+profile:
+ perl -d:NYTProf loadbars --hosts localhost
+ nytprofhtml nytprof.out
perltidy:
find . -name \*.pm | xargs perltidy -b
perltidy -b $(NAME)
@@ -22,6 +25,9 @@ deinstall:
test ! -z "$(DESTDIR)/usr/share/$(NAME)" && -d $(DESTDIR)/usr/share/$(NAME) && rm -r $(DESTDIR)/usr/share/$(NAME) || exit 0
clean:
test -f .version && rm .version
+ test -f nytprof.out && rm nytprof.out
+ test -f tmon.out && rm tmon.out
+ test -d nytprof && rm -Rf nytprof
deb:
dpkg-buildpackage
clean-top: