(src *profile.Profile)
| 392 | type profileCopier []byte |
| 393 | |
| 394 | func makeProfileCopier(src *profile.Profile) profileCopier { |
| 395 | // Pre-serialize the profile. We will deserialize every time a fresh copy is needed. |
| 396 | var buf bytes.Buffer |
| 397 | src.WriteUncompressed(&buf) |
| 398 | return profileCopier(buf.Bytes()) |
| 399 | } |
| 400 | |
| 401 | // newCopy returns a new copy of the profile. |
| 402 | func (c profileCopier) newCopy() *profile.Profile { |
searching dependent graphs…