From owner-svn-ports-head@freebsd.org Sat Feb 16 19:50:40 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 230AE14F2E50; Sat, 16 Feb 2019 19:50:40 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6A8D69A6C; Sat, 16 Feb 2019 19:50:39 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A77DFB37B; Sat, 16 Feb 2019 19:50:39 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1GJodib077212; Sat, 16 Feb 2019 19:50:39 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1GJocHH077206; Sat, 16 Feb 2019 19:50:38 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201902161950.x1GJocHH077206@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Sat, 16 Feb 2019 19:50:38 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/devel: . remotery remotery/files X-SVN-Commit-Revision: 493067 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B6A8D69A6C X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2019 19:50:40 -0000 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 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 + #include + #include +-#include "..\lib\Remotery.h" ++#include + + 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