MCPcopy Index your code
hub / github.com/subtrace/subtrace / getProcessFast

Method getProcessFast

cmd/run/engine/engine.go:177–187  ·  view source on GitHub ↗
(pid int)

Source from the content-addressed store, hash-verified

175}
176
177func (e *Engine) getProcessFast(pid int) *process.Process {
178 e.mu.RLock()
179 defer e.mu.RUnlock()
180 if p, ok := e.processes[pid]; ok {
181 return p
182 }
183 if p, ok := e.threads[pid]; ok {
184 return p
185 }
186 return nil
187}
188
189func (e *Engine) getProcess(pid int) *process.Process {
190 if p := e.getProcessFast(pid); p != nil {

Callers 1

getProcessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected