Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160247048
D19057.id53960.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D19057.id53960.diff
View Options
Index: devel/Makefile
===================================================================
--- devel/Makefile
+++ devel/Makefile
@@ -5481,6 +5481,7 @@
SUBDIR += regexxer
SUBDIR += relx
SUBDIR += remake
+ SUBDIR += remotery
SUBDIR += replay
SUBDIR += replxx
SUBDIR += resolv_wrapper
Index: devel/remotery/Makefile
===================================================================
--- /dev/null
+++ devel/remotery/Makefile
@@ -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>
Index: devel/remotery/distinfo
===================================================================
--- /dev/null
+++ devel/remotery/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1550230165
+SHA256 (Celtoys-Remotery-g20190209-38f3ed9_GH0.tar.gz) = e7fe4a4d88b2fc0fe8f3cae6da37ac93d5963bf6e802205560adb060c11deab9
+SIZE (Celtoys-Remotery-g20190209-38f3ed9_GH0.tar.gz) = 154949
Index: devel/remotery/files/patch-sample_sample.c
===================================================================
--- /dev/null
+++ devel/remotery/files/patch-sample_sample.c
@@ -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);
Index: devel/remotery/files/pkg-message.in
===================================================================
--- /dev/null
+++ devel/remotery/files/pkg-message.in
@@ -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.
Index: devel/remotery/pkg-descr
===================================================================
--- /dev/null
+++ devel/remotery/pkg-descr
@@ -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
Index: devel/remotery/pkg-plist
===================================================================
--- /dev/null
+++ devel/remotery/pkg-plist
@@ -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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 1:16 PM (15 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34247742
Default Alt Text
D19057.id53960.diff (5 KB)
Attached To
Mode
D19057: New port: devel/remotery: Single file, realtime CPU/GPU profiler library with remote web viewer
Attached
Detach File
Event Timeline
Log In to Comment