MCPcopy Create free account
hub / github.com/dispatchrun/wzprof / makeLocationKey

Function makeLocationKey

wzprof.go:308–315  ·  view source on GitHub ↗
(fn api.FunctionDefinition, pc experimental.ProgramCounter)

Source from the content-addressed store, hash-verified

306}
307
308func makeLocationKey(fn api.FunctionDefinition, pc experimental.ProgramCounter) locationKey {
309 return locationKey{
310 module: fn.ModuleName(),
311 index: fn.Index(),
312 name: fn.Name(),
313 pc: uint64(pc),
314 }
315}
316
317type stackCounterMap map[uint64]*stackCounter
318

Callers 1

buildProfileFunction · 0.85

Calls 3

NameMethod · 0.65
ModuleNameMethod · 0.45
IndexMethod · 0.45

Tested by

no test coverage detected