PrintMarker prints to w a one-line report containing only the marker for h. It is appropriate to use when [Matcher.ShouldPrint] and [Matcher.MarkerOnly] both return true.
(w Writer, h uint64)
| 493 | // PrintMarker prints to w a one-line report containing only the marker for h. |
| 494 | // It is appropriate to use when [Matcher.ShouldPrint] and [Matcher.MarkerOnly] both return true. |
| 495 | func PrintMarker(w Writer, h uint64) error { |
| 496 | var buf [50]byte |
| 497 | b := AppendMarker(buf[:0], h) |
| 498 | b = append(b, '\n') |
| 499 | _, err := w.Write(b) |
| 500 | return err |
| 501 | } |
| 502 | |
| 503 | // printStack prints to w a multi-line report containing a formatting of the call stack stk, |
| 504 | // with each line preceded by the marker for h. |
no test coverage detected
searching dependent graphs…