MCPcopy Index your code
hub / github.com/maruel/panicparse / SleepString

Method SleepString

stack/stack.go:762–770  ·  view source on GitHub ↗

SleepString returns a string "N-M minutes" if the goroutine(s) slept for a long time. Returns an empty string otherwise.

()

Source from the content-addressed store, hash-verified

760//
761// Returns an empty string otherwise.
762func (s *Signature) SleepString() string {
763 if s.SleepMax == 0 {
764 return ""
765 }
766 if s.SleepMin != s.SleepMax {
767 return fmt.Sprintf("%d~%d minutes", s.SleepMin, s.SleepMax)
768 }
769 return fmt.Sprintf("%d minutes", s.SleepMax)
770}
771
772// updateLocations calls updateLocations on both CreatedBy and Stack and
773// returns true if they were both resolved.

Callers 4

TestSignatureFunction · 0.80
Example_textFunction · 0.80
BucketHeaderMethod · 0.80
GoroutineHeaderMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestSignatureFunction · 0.64
Example_textFunction · 0.64