routineColor returns the color for the header of the goroutines bucket.
(first, multipleBuckets bool)
| 152 | |
| 153 | // routineColor returns the color for the header of the goroutines bucket. |
| 154 | func (p *Palette) routineColor(first, multipleBuckets bool) string { |
| 155 | if first && multipleBuckets { |
| 156 | return p.RoutineFirst |
| 157 | } |
| 158 | return p.Routine |
| 159 | } |
| 160 | |
| 161 | // BucketHeader prints the header of a goroutine signature. |
| 162 | func (p *Palette) BucketHeader(b *stack.Bucket, pf pathFormat, multipleBuckets bool) string { |
no outgoing calls
no test coverage detected