MCPcopy Create free account
hub / github.com/google/pprof / addString

Function addString

profile/encode.go:577–584  ·  view source on GitHub ↗
(strings map[string]int, s string)

Source from the content-addressed store, hash-verified

575}
576
577func addString(strings map[string]int, s string) int64 {
578 i, ok := strings[s]
579 if !ok {
580 i = len(strings)
581 strings[s] = i
582 }
583 return int64(i)
584}
585
586func getString(strings []string, strng *int64, err error) (string, error) {
587 if err != nil {

Callers 1

preEncodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…