import luaprofiler 2.0.2
LuaProfiler is a time profiler designed to help finding bottlenecks on your Lua program. If you use LuaProfiler into your program, it will generate a log of all your function calls and their respective running times. You can use this log to generate a summary of the functions your program uses, along with how long it stayed in each of them, or you can import the log into a spreadsheet for further analysis.
This commit is contained in:
parent
1f4c98a5a6
commit
f2e86ecce6
41
devel/luaprofiler/Makefile
Normal file
41
devel/luaprofiler/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/07/08 12:28:57 jasper Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= time profiler for Lua
|
||||
|
||||
V= 2.0.2
|
||||
DISTNAME= luaprofiler-$V
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://luaprofiler.luaforge.net/
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES= lang/lua
|
||||
|
||||
MASTER_SITES= http://luaforge.net/frs/download.php/3400/
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
# XXX: Fix this mess and the mess in patch-Makefile.linux
|
||||
MAKE_FILE= ../Makefile.linux
|
||||
ALL_TARGET= # empty
|
||||
CFLAGS += -I${LOCALBASE}/include -fPIC
|
||||
|
||||
WRKDIST= ${WRKDIR}/luaprofiler-$V/
|
||||
WRKSRC= ${WRKDIST}/src/
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}/luaprofiler/\
|
||||
${PREFIX}/share/doc/luaprofiler/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/profiler.so ${MODLUA_LIBDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/analyzer/summary.lua \
|
||||
${MODLUA_DATADIR}/luaprofiler/
|
||||
${INSTALL_DATA} ${WRKDIST}/doc/us/*.html ${PREFIX}/share/doc/luaprofiler/
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/luaprofiler/distinfo
Normal file
5
devel/luaprofiler/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (luaprofiler-2.0.2.tar.gz) = YRQ1yOYeGjMO4KqN3JwSSg==
|
||||
RMD160 (luaprofiler-2.0.2.tar.gz) = +l9uErdcHZ30zrjCN73USbmi9Ag=
|
||||
SHA1 (luaprofiler-2.0.2.tar.gz) = wkdfxENFZ+wj1lSm7cbQToJdZeA=
|
||||
SHA256 (luaprofiler-2.0.2.tar.gz) = BK54yQPPdMQ0HkutpcWVNcqKt0EfzsPaLF4Sq3dd7+A=
|
||||
SIZE (luaprofiler-2.0.2.tar.gz) = 20078
|
12
devel/luaprofiler/patches/patch-Makefile_linux
Normal file
12
devel/luaprofiler/patches/patch-Makefile_linux
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile_linux,v 1.1.1.1 2010/07/08 12:28:57 jasper Exp $
|
||||
--- Makefile.linux.orig Mon Jul 5 02:43:01 2010
|
||||
+++ Makefile.linux Mon Jul 5 02:43:50 2010
|
||||
@@ -1,6 +1,6 @@
|
||||
-include config.linux
|
||||
+include ../config.linux
|
||||
|
||||
-OBJS= src/clocks.o src/core_profiler.o src/function_meter.o src/stack.o src/lua50_profiler.o
|
||||
+OBJS= clocks.o core_profiler.o function_meter.o stack.o lua50_profiler.o
|
||||
|
||||
|
||||
profiler: $(OBJS)
|
13
devel/luaprofiler/patches/patch-config_linux
Normal file
13
devel/luaprofiler/patches/patch-config_linux
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-config_linux,v 1.1.1.1 2010/07/08 12:28:57 jasper Exp $
|
||||
--- config.linux.orig Mon Jul 5 02:34:42 2010
|
||||
+++ config.linux Mon Jul 5 02:35:47 2010
|
||||
@@ -4,7 +4,7 @@ LUA_INCLUDE= /usr/local/include/lua51
|
||||
PROFILER_OUTPUT= bin/profiler.so
|
||||
|
||||
INCS= -I$(LUA_INCLUDE)
|
||||
-CC= gcc
|
||||
+CC?= gcc
|
||||
WARN= -ansi -W -Wall
|
||||
EXTRA_LIBS=
|
||||
-CFLAGS= -O2 -DTESTS $(WARN) $(INCS) -I./src
|
||||
+CFLAGS+= -O2 -DTESTS $(WARN) $(INCS) -I./src
|
8
devel/luaprofiler/pkg/DESCR
Normal file
8
devel/luaprofiler/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
LuaProfiler is a time profiler designed to help finding bottlenecks on
|
||||
your Lua program.
|
||||
|
||||
If you use LuaProfiler into your program, it will generate a log of all
|
||||
your function calls and their respective running times. You can use this
|
||||
log to generate a summary of the functions your program uses, along with
|
||||
how long it stayed in each of them, or you can import the log into a
|
||||
spreadsheet for further analysis.
|
8
devel/luaprofiler/pkg/PLIST
Normal file
8
devel/luaprofiler/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/07/08 12:28:57 jasper Exp $
|
||||
lib/lua/5.1/profiler.so
|
||||
share/doc/luaprofiler/
|
||||
share/doc/luaprofiler/index.html
|
||||
share/doc/luaprofiler/license.html
|
||||
share/doc/luaprofiler/manual.html
|
||||
share/lua/5.1/luaprofiler/
|
||||
share/lua/5.1/luaprofiler/summary.lua
|
Loading…
x
Reference in New Issue
Block a user