INNER CODE UNIT · Go

func

aquasecurity/tracee · cmd/tracee-bench/main.go:34

func (m measurement) Print() {
	log.Print("\n")
	fmt.Printf("Events/Sec:     %f\n", m.AvgEbpfRate)
	fmt.Printf("EventsLost/Sec: %f\n", m.AvgLostEventsRate)
	fmt.Printf("Events Lost:    %d\n", m.LostEvents)
	fmt.Println("===============================================")
}
func (m measurement) PrintJson() {
	res, _ := json.Marshal(m)
	fmt.Println(string(res))
}

type OutputMode string

const (
	jsonOutput   OutputMode = "json"
	prettyOutput OutputMode = "pretty"
)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…