summaryrefslogtreecommitdiff
path: root/extendedstats/other.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-06-05 03:32:17 -0400
committerWill Hawkins <[email protected]>2022-06-05 03:32:17 -0400
commitd06438ff7414abfcc5a2a1bd13a935ee594f0842 (patch)
tree52517463088faaf2ad85ffddb7e45860384b08ac /extendedstats/other.go
parent9be87fa5ec89c9e393c9c93b3cb36668c71593d6 (diff)
[Feature] Add -extended-stats for *nix platforms
On *nix platforms, there is now a `-extended-stats` option that will print out some extended statistics for the test. The statistics are based on information gleaned from the `TCP_INFO` of the underlying TCP connections. What is implemented so far is just a proof of concept of the extended stats that could be calculated. Depending on what users want, we can add additional extended statistics.
Diffstat (limited to 'extendedstats/other.go')
-rw-r--r--extendedstats/other.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/extendedstats/other.go b/extendedstats/other.go
new file mode 100644
index 0000000..c0f89ed
--- /dev/null
+++ b/extendedstats/other.go
@@ -0,0 +1,22 @@
+//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd
+// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
+
+package extendedstats
+
+import (
+ "net"
+
+ "golang.org/x/sys/unix"
+)
+
+type ExtendedStats struct{}
+
+func (es *ExtendedStats) IncorporateConnectionStats(conn net.Conn) {}
+
+func (es *ExtendedStats) Repr() string {
+ return ""
+}
+
+func ExtendedStatsAvailable() bool {
+ return false
+}