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

Function equalValueType

profile/merge.go:543–545  ·  view source on GitHub ↗

equalValueType returns true if the two value types are semantically equal. It ignores the internal fields used during encode/decode.

(st1, st2 *ValueType)

Source from the content-addressed store, hash-verified

541// equalValueType returns true if the two value types are semantically
542// equal. It ignores the internal fields used during encode/decode.
543func equalValueType(st1, st2 *ValueType) bool {
544 return st1.Type == st2.Type && st1.Unit == st2.Unit
545}
546
547// locationIDMap is like a map[uint64]*Location, but provides efficiency for
548// ids that are densely numbered, which is often the case.

Callers 1

compatibleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…