Date: Sat, 16 Feb 2019 19:50:38 +0000 (UTC) From: Mateusz Piotrowski <0mp@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493067 - in head/devel: . remotery remotery/files Message-ID: <201902161950.x1GJocHH077206@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: 0mp Date: Sat Feb 16 19:50:38 2019 New Revision: 493067 URL: https://svnweb.freebsd.org/changeset/ports/493067 Log: New port: devel/remotery: Single file, realtime CPU/GPU profiler library with remote web viewer Remotery is a realtime CPU/GPU profiler hosted in a single C file with a viewer that runs in a web browser. Features: - Lightweight instrumentation of multiple threads running on the CPU. - Web viewer that runs in Chrome, Firefox and Safari. Custom WebSockets server transmits sample data to the browser on a latent thread. - Profiles itself and shows how it's performing in the viewer. - Console output for logging text. - Console input for sending commands to your game. WWW: https://github.com/Celtoys/Remotery Reviewed by: mat Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D19057 Added: head/devel/remotery/ head/devel/remotery/Makefile (contents, props changed) head/devel/remotery/distinfo (contents, props changed) head/devel/remotery/files/ head/devel/remotery/files/patch-sample_sample.c (contents, props changed) head/devel/remotery/files/pkg-message.in (contents, props changed) head/devel/remotery/pkg-descr (contents, props changed) head/devel/remotery/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Feb 16 19:50:15 2019 (r493066) +++ head/devel/Makefile Sat Feb 16 19:50:38 2019 (r493067) @@ -5491,6 +5491,7 @@ SUBDIR += regexxer SUBDIR += relx SUBDIR += remake + SUBDIR += remotery SUBDIR += replay SUBDIR += replxx SUBDIR += resolv_wrapper Added: head/devel/remotery/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/Makefile Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= remotery +DISTVERSION= g20190209 +CATEGORIES= devel + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Single file, realtime CPU/GPU profiler library with remote web viewer + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= Celtoys +GH_PROJECT= Remotery +GH_TAGNAME= 38f3ed9 + +PORTDOCS= readme.md +PORTEXAMPLES= sample sample.c +SUB_FILES= pkg-message + +OPTIONS_DEFINE= DOCS EXAMPLES + +# We use an empty do-build target here instead of setting NO_BUILD because +# otherwise post-build-EXAMPLES-on would never run. +do-build: + +post-build-EXAMPLES-on: + cd ${WRKSRC} && ${CC} -I./lib -pthread -lm -o ./sample/sample \ + ./lib/Remotery.c ./sample/sample.c + +do-install: + cd ${WRKSRC} && ${COPYTREE_SHARE} vis ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/lib/Remotery.c ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/lib/Remotery.h ${STAGEDIR}${PREFIX}/include + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/readme.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample/sample.c ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/sample/sample ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> Added: head/devel/remotery/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/distinfo Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,3 @@ +TIMESTAMP = 1550230165 +SHA256 (Celtoys-Remotery-g20190209-38f3ed9_GH0.tar.gz) = e7fe4a4d88b2fc0fe8f3cae6da37ac93d5963bf6e802205560adb060c11deab9 +SIZE (Celtoys-Remotery-g20190209-38f3ed9_GH0.tar.gz) = 154949 Added: head/devel/remotery/files/patch-sample_sample.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/files/patch-sample_sample.c Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,11 @@ +--- sample/sample.c.orig 2019-02-01 11:18:44 UTC ++++ sample/sample.c +@@ -2,7 +2,7 @@ + #include <math.h> + #include <signal.h> + #include <stdio.h> +-#include "..\lib\Remotery.h" ++#include <Remotery.h> + + void aggregateFunction() { + rmt_BeginCPUSample(aggregate, RMTSF_Aggregate); Added: head/devel/remotery/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/files/pkg-message.in Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,13 @@ +Compiling the sample program +============================ + +sample.c can be compiled in the following way: + +cc -I%%PREFIX%%/include -pthread -lm %%DATADIR%%/Remotery.c %%EXAMPLESDIR%%/sample.c + +A precompiled sample program can be found at %%EXAMPLESDIR%%/sample. + +Using the Remote Web Viewer +=========================== + +Open %%DATADIR%%/index.html in a web browser. Added: head/devel/remotery/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/pkg-descr Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,12 @@ +Remotery is a realtime CPU/GPU profiler hosted in a single C file with a +viewer that runs in a web browser. + +Features: +- Lightweight instrumentation of multiple threads running on the CPU. +- Web viewer that runs in Chrome, Firefox and Safari. Custom WebSockets + server transmits sample data to the browser on a latent thread. +- Profiles itself and shows how it's performing in the viewer. +- Console output for logging text. +- Console input for sending commands to your game. + +WWW: https://github.com/Celtoys/Remotery Added: head/devel/remotery/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/remotery/pkg-plist Sat Feb 16 19:50:38 2019 (r493067) @@ -0,0 +1,34 @@ +include/Remotery.h +%%DATADIR%%/Remotery.c +%%DATADIR%%/vis/Code/Console.js +%%DATADIR%%/vis/Code/DataViewReader.js +%%DATADIR%%/vis/Code/PixelTimeRange.js +%%DATADIR%%/vis/Code/Remotery.js +%%DATADIR%%/vis/Code/SampleWindow.js +%%DATADIR%%/vis/Code/ThreadFrame.js +%%DATADIR%%/vis/Code/TimelineRow.js +%%DATADIR%%/vis/Code/TimelineWindow.js +%%DATADIR%%/vis/Code/TitleWindow.js +%%DATADIR%%/vis/Code/WebSocketConnection.js +%%DATADIR%%/vis/Styles/Remotery.css +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Animation.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Bind.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Convert.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Core.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/DOM.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Keyboard.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/LocalStore.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/Mouse.js +%%DATADIR%%/vis/extern/BrowserLib/Core/Code/MurmurHash3.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Button.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/ComboBox.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Container.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/EditBox.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Grid.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Label.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Treeview.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/TreeviewItem.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/Window.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Code/WindowManager.js +%%DATADIR%%/vis/extern/BrowserLib/WindowManager/Styles/WindowManager.css +%%DATADIR%%/vis/index.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902161950.x1GJocHH077206>