File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 343
343
"outputs" : [],
344
344
"source" : [
345
345
" for process in psutil.process_iter():\n " ,
346
- " if 'bash ' in process.name():\n " ,
346
+ " if 'python ' in process.name():\n " ,
347
347
" cpu_times = process.cpu_times()\n " ,
348
348
" thread_str = f'threads: {process.num_threads()}'\n " ,
349
349
" cpu_str = f'user: {cpu_times.user}, sys: {cpu_times.system}'\n " ,
372
372
"outputs" : [],
373
373
"source" : [
374
374
" for process in psutil.process_iter():\n " ,
375
- " if process.cpu_times().user > 2.5 :\n " ,
375
+ " if process.cpu_times().user > 0.1 :\n " ,
376
376
" print(f'{process.name()}: {process.cpu_times().user}')"
377
377
]
378
378
},
632
632
"name" : " python" ,
633
633
"nbconvert_exporter" : " python" ,
634
634
"pygments_lexer" : " ipython3" ,
635
- "version" : " 3.7.0 "
635
+ "version" : " 3.6.6 "
636
636
}
637
637
},
638
638
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments