From 6ec996fb7fce8c31c92d1566bfce8a46c0e0da36 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 14 Apr 2013 17:50:03 +0200 Subject: add profiling target --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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: -- cgit v1.2.3