The ps command can be done in terminal to view information about a process. For example,
#list processes
ps aux
#with executable paths
ps -ef
#path for a specific process
ps -p [pid]
However, if a process is large, it may be necessary to isolate what individual threads are doing. For example, kernel_task.
The command sudo dtruss -ap [pid] is not optimal because it requires turning off system resource protection. Is there a way to find ps information about threads without turning off system resource protection?
Thanks