Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2007 20:21:58 +0100
From:      "Ronald Klop" <ronald@echteman.nl>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/117615: New port: devel/tijmp (A simple memory profiler for Java 1.6+)
Message-ID:  <1193599318.62017@ronald.office.base.nl>
Resent-Message-ID: <200710281930.l9SJU1c2016205@freefall.freebsd.org>

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

>Number:         117615
>Category:       ports
>Synopsis:       New port: devel/tijmp (A simple memory profiler for Java 1.6+)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 19:30:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ronald Klop
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.2-STABLE #79: Tue Oct 23 23:56:05 CEST 2007
    root@ronald.office.base.nl:/usr/obj/usr/src/sys/RONALD



>Description:


Mmm, just a new port. Quite simple.


>How-To-Repeat:





>Fix:


--- tijmp.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:
#
#	tijmp
#	tijmp/Makefile
#	tijmp/distinfo
#	tijmp/pkg-descr
#
echo c - tijmp
mkdir -p tijmp > /dev/null 2>&1
echo x - tijmp/Makefile
sed 's/^X//' >tijmp/Makefile << 'END-of-tijmp/Makefile'
X# New ports collection makefile for: tijmp
X# Date created:        8 October 2007
X# Whom:                Ronald Klop <ronald@echteman.nl>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tijmp
XPORTVERSION=	0.4
XCATEGORIES=	devel java
XMASTER_SITES=	http://www.khelekore.org/jmp/tijmp/
X
XMAINTAINER=	ronald@echteman.nl
XCOMMENT=	Tools Interface Java Memory Profiler
X
XOPTIONS=	OPTIMIZED_CFLAGS "Compile with -O3" off
X
XUSE_GMAKE=	yes
XUSE_JAVA=	yes
XJAVA_VERSION=	1.6+
XJAVA_OS=	native
XJAVA_BUILD=	jdk
XNEED_JAVAC=	yes
XUSE_JIKES=	no
X
XGNU_CONFIGURE=	yes
X
XCONFIGURE_ENV=	JAVA_HOME="${JAVA_HOME}"
XUSE_LDCONFIG=	yes
X
XPLIST_FILES=	lib/lib${PORTNAME}.la \
X				lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
X				%%JAVAJARDIR%%/${PORTNAME}.jar
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPTIMIZED_CFLAGS)
XCFLAGS?=	-O3
X.endif
X
Xpost-extract::
X	@${SED} -i "" -e 's|share/java|${JAVAJARDIR:S,^${PREFIX}/,,}|' ${WRKSRC}/src/tijmp.c
X
Xdo-install::
X	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
X	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
X	${INSTALL_DATA} ${WRKSRC}/src/.libs/lib${PORTNAME}.la ${PREFIX}/lib/
X	${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/lib${PORTNAME}.so.0 ${PREFIX}/lib/
X	cd ${PREFIX}/lib && ${LN} -sf lib${PORTNAME}.so.0 lib${PORTNAME}.so
X
X.include <bsd.port.post.mk>
END-of-tijmp/Makefile
echo x - tijmp/distinfo
sed 's/^X//' >tijmp/distinfo << 'END-of-tijmp/distinfo'
XMD5 (tijmp-0.4.tar.gz) = 8eecd304f8bb221d94983dd674a880be
XSHA256 (tijmp-0.4.tar.gz) = 083bce9602f71fca1eee3729fa1c89275f9a71c8ec78eee11714681663c22b8b
XSIZE (tijmp-0.4.tar.gz) = 351355
END-of-tijmp/distinfo
echo x - tijmp/pkg-descr
sed 's/^X//' >tijmp/pkg-descr << 'END-of-tijmp/pkg-descr'
XTIJmp is a memory profiler for java. TIJmp is made for java/6 and later, it
Xwill not work on java/5 systems. If you need a profiler for java/5 or earlier
Xtry the jmp profiler.
X
XTIJmp is written to be fast and have a small footprint, both memory- and cpu-
Xwise. This means that the jvm will run at almost full speed, until you use
Xtijmp to find some information.
X
XTIJmp uses C code to talk to the jvm and it uses swing to show the the tables
Xof information. So tijmp is written in C (using jvmti and jni) and Java.
X
XTIJmp runs in the same jvm as the program being profiled. This means that it
Xcan easily get access to all things jvmti/jni has to offer.
X
XTIJmp is distributed under the General Public License, GPL.
X
XUsage:
Xjava -agentlib:tijmp <your-class>
X
XWWW: http://khelekore.org/jmp/tijmp/
END-of-tijmp/pkg-descr
exit

--- tijmp.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?1193599318.62017>