You've already forked go-profiler-notes
mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2025-07-15 23:54:16 +02:00
update bench
This commit is contained in:
14
bench/csv.go
14
bench/csv.go
@ -6,13 +6,14 @@ import (
|
||||
)
|
||||
|
||||
type Record struct {
|
||||
Workload string
|
||||
Ops int
|
||||
Goroutines int
|
||||
Depth int
|
||||
Blockprofilerate int
|
||||
Run int
|
||||
Bufsize int
|
||||
Depth int
|
||||
Duration time.Duration
|
||||
Goroutines int
|
||||
Ops int
|
||||
Run int
|
||||
Workload string
|
||||
}
|
||||
|
||||
type Column struct {
|
||||
@ -33,6 +34,9 @@ var Columns = []Column{
|
||||
{"depth", func(r *Record) (string, error) {
|
||||
return fmt.Sprintf("%d", r.Depth), nil
|
||||
}},
|
||||
{"bufsize", func(r *Record) (string, error) {
|
||||
return fmt.Sprintf("%d", r.Bufsize), nil
|
||||
}},
|
||||
{"blockprofilerate", func(r *Record) (string, error) {
|
||||
return fmt.Sprintf("%d", r.Blockprofilerate), nil
|
||||
}},
|
||||
|
Reference in New Issue
Block a user