report

package
v0.1.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package report 生成 HoloWAN Recorder 风格占位报告(六元组由 merge 或人工填写)。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WritePlaceholder

func WritePlaceholder(path string, testID string, intervalSec float64, packetSize int) error

WritePlaceholder 写入带占位数据行的主报告路径。

func WriteSummary

func WriteSummary(path string, testID string, intervalSec float64, packetSize int, sessionStart, sessionEnd time.Time, lines []SummaryLine, cfg sessionmeta.Meta) error

WriteSummary 写入带 merge 六元组结果的 HoloWAN 文本报告(每周期一行)。 sessionStart、sessionEnd 通常为双端 CSV 全部非空 timestamp_ns 的最小/最大时刻(本地时区格式化)。 cfg 为与 client.csv 同目录 config.json 一致(用于 Duration(sec));testID 为合并后的测试标识(与 config.test_id 或目录兜底一致),写入单行 Test Name(与 Start Time 等同为词首大写;HoloWAN 类解析器通常将键规范为 test_name)。

Types

type SummaryLine

type SummaryLine struct {
	Delay1Ms float64
	Loss1Pct float64
	BW1Mbps  float64
	Delay2Ms float64
	Loss2Pct float64
	BW2Mbps  float64
}

SummaryLine 表示一个采样周期的六元组指标。

Source Files

  • holowan.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL