aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-08 17:47:36 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-08 18:36:56 +0000
commit510a1027689186093a8bf139705c7f271640d617 (patch)
tree87e057528a3a960739d190d575bbdf77fed4d364
parent65ff19eb1b38a9f3292e174d2e4f4e558c3a740f (diff)
devel/rubygem-metrics: Add rubygem-metrics 0.10.2
Capture metrics about code execution in a vendor agnostic way. As the author of many libraries which would benefit from metrics, there are few key priorities: (1) zero overhead if metrics are disabled, minimal overhead if enabled, and (2) a small and opinionated interface with standardised semantics. Features: - Zero-overhead if tracing is disabled and minimal overhead if enabled. - Small opinionated interface with standardised semantics.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-metrics/Makefile17
-rw-r--r--devel/rubygem-metrics/distinfo3
-rw-r--r--devel/rubygem-metrics/pkg-descr8
4 files changed, 29 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 867bca40aef5..b5c7f49c9e4e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7371,6 +7371,7 @@
SUBDIR += rubygem-metaid
SUBDIR += rubygem-metasm
SUBDIR += rubygem-method_source
+ SUBDIR += rubygem-metrics
SUBDIR += rubygem-micromachine
SUBDIR += rubygem-middleware
SUBDIR += rubygem-mini_histogram
diff --git a/devel/rubygem-metrics/Makefile b/devel/rubygem-metrics/Makefile
new file mode 100644
index 000000000000..b4ab6dce8adf
--- /dev/null
+++ b/devel/rubygem-metrics/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= metrics
+PORTVERSION= 0.10.2
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Application metrics and instrumentation
+WWW= https://github.com/socketry/metrics
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/license.md
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-metrics/distinfo b/devel/rubygem-metrics/distinfo
new file mode 100644
index 000000000000..6b01ce903c14
--- /dev/null
+++ b/devel/rubygem-metrics/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1725559543
+SHA256 (rubygem/metrics-0.10.2.gem) = 5f03b7b0a81390cf49510359244935335ce655038ffb0dedbc2acf97dce8e9cb
+SIZE (rubygem/metrics-0.10.2.gem) = 12288
diff --git a/devel/rubygem-metrics/pkg-descr b/devel/rubygem-metrics/pkg-descr
new file mode 100644
index 000000000000..800547a97ba5
--- /dev/null
+++ b/devel/rubygem-metrics/pkg-descr
@@ -0,0 +1,8 @@
+Capture metrics about code execution in a vendor agnostic way. As the author of
+many libraries which would benefit from metrics, there are few key priorities:
+(1) zero overhead if metrics are disabled, minimal overhead if enabled, and (2)
+a small and opinionated interface with standardised semantics.
+
+Features:
+- Zero-overhead if tracing is disabled and minimal overhead if enabled.
+- Small opinionated interface with standardised semantics.