Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pythonprofilers/memory_profiler
/ find_first_process
Function
find_first_process
mprof.py:182–186 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
180
return
' '
.join(args)
181
182
def
find_first_process(name):
183
for
i in mp.psutil.process_iter():
184
if
name in i.name():
185
return
i
186
return
None
187
188
def
attach_action():
189
argv = sys.argv
Callers
1
run_action
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected