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

Method getProcess

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

Source from the content-addressed store, hash-verified

187}
188
189func (e *Engine) getProcess(pid int) *process.Process {
190 if p := e.getProcessFast(pid); p != nil {
191 return p
192 }
193 e.mu.Lock()
194 defer e.mu.Unlock()
195 return e.ensureProcessLocked(pid)
196}
197
198func (e *Engine) countRunning() int {
199 e.mu.RLock()

Callers 1

handleMethod · 0.95

Calls 3

getProcessFastMethod · 0.95
ensureProcessLockedMethod · 0.95
LockMethod · 0.80

Tested by

no test coverage detected