Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2006 10:50:28 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org
Subject:   ports/102468: [NEW PORT] benchmarks/p5-Benchmark-Stopwatch: Simple timing of stages of your code
Message-ID:  <20060824025028.659C6C0@netnews.NCTU.edu.tw>
Resent-Message-ID: <200608240300.k7O30e6T001245@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102468
>Category:       ports
>Synopsis:       [NEW PORT] benchmarks/p5-Benchmark-Stopwatch: Simple timing of stages of your code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 24 03:00:39 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
The other benchmark modules provide excellent timing for specific
parts of your code. This module aims to allow you to easily time the
progression of your code.

The stopwatch analogy is that at some point you get a new stopwatch
and start timing. Then you note certain events using lap. Finally you
stop the watch and then print out a summary.

The summary shows all the events in order, what time they occured at,
how long since the last lap and the percentage of the total time.
Hopefully this will give you a good idea of where your code is
spending most of its time.

The times are all wallclock times in fractional seconds.

That's it.

WWW:	http://search.cpan.org/dist/Benchmark-Stopwatch/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-Benchmark-Stopwatch-0.03.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Benchmark-Stopwatch
#	p5-Benchmark-Stopwatch/pkg-descr
#	p5-Benchmark-Stopwatch/Makefile
#	p5-Benchmark-Stopwatch/pkg-plist
#	p5-Benchmark-Stopwatch/distinfo
#
echo c - p5-Benchmark-Stopwatch
mkdir -p p5-Benchmark-Stopwatch > /dev/null 2>&1
echo x - p5-Benchmark-Stopwatch/pkg-descr
sed 's/^X//' >p5-Benchmark-Stopwatch/pkg-descr << 'END-of-p5-Benchmark-Stopwatch/pkg-descr'
XThe other benchmark modules provide excellent timing for specific
Xparts of your code. This module aims to allow you to easily time the
Xprogression of your code.
X
XThe stopwatch analogy is that at some point you get a new stopwatch
Xand start timing. Then you note certain events using lap. Finally you
Xstop the watch and then print out a summary.
X
XThe summary shows all the events in order, what time they occured at,
Xhow long since the last lap and the percentage of the total time.
XHopefully this will give you a good idea of where your code is
Xspending most of its time.
X
XThe times are all wallclock times in fractional seconds.
X
XThat's it.
X
XWWW:	http://search.cpan.org/dist/Benchmark-Stopwatch/
END-of-p5-Benchmark-Stopwatch/pkg-descr
echo x - p5-Benchmark-Stopwatch/Makefile
sed 's/^X//' >p5-Benchmark-Stopwatch/Makefile << 'END-of-p5-Benchmark-Stopwatch/Makefile'
X# New ports collection makefile for:	p5-Benchmark-Stopwatch
X# Date created:		2006-08-24
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Benchmark-Stopwatch
XPORTVERSION=	0.03
XCATEGORIES=	benchmarks perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Benchmark
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	perl@FreeBSD.org
XCOMMENT=	Simple timing of stages of your code
X
XRUN_DEPENDS=	${SITE_PERL}/Clone.pm:${PORTSDIR}/devel/p5-Clone
XBUILD_DEPENDS=	${RUN_DEPENDS}
XBUILD_DEPENDS+=	${SITE_PERL}/Test/LongString.pm:${PORTSDIR}/devel/p5-Test-LongString
X
XPERL_MODBUILD=	yes
X
XMAN3=		Benchmark::Stopwatch.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500703
XRUN_DEPENDS+=	${SITE_PERL}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
XBUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Benchmark-Stopwatch/Makefile
echo x - p5-Benchmark-Stopwatch/pkg-plist
sed 's/^X//' >p5-Benchmark-Stopwatch/pkg-plist << 'END-of-p5-Benchmark-Stopwatch/pkg-plist'
X@comment $FreeBSD$
X%%SITE_PERL%%/Benchmark/Stopwatch.pm
X@dirrmtry %%SITE_PERL%%/Benchmark
END-of-p5-Benchmark-Stopwatch/pkg-plist
echo x - p5-Benchmark-Stopwatch/distinfo
sed 's/^X//' >p5-Benchmark-Stopwatch/distinfo << 'END-of-p5-Benchmark-Stopwatch/distinfo'
XMD5 (Benchmark-Stopwatch-0.03.tar.gz) = 14a58481012db21ad046c718dd3da76c
XSHA256 (Benchmark-Stopwatch-0.03.tar.gz) = 687f9889b97d696de337ec261bda227561322a3f4c0f7060af54a127ed6cbed2
XSIZE (Benchmark-Stopwatch-0.03.tar.gz) = 4731
END-of-p5-Benchmark-Stopwatch/distinfo
exit
--- p5-Benchmark-Stopwatch-0.03.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060824025028.659C6C0>