Scan threads for process state information.

Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread
and       e86692e869/ProcessList.c
This should be a fix for #361.
This commit is contained in:
Hisham Muhammad
2016-02-18 14:57:09 -02:00
parent c18309466d
commit 5ee6715843
3 changed files with 69 additions and 10 deletions

View File

@ -38,4 +38,6 @@ void DarwinProcess_setFromKInfoProc(Process *proc, struct kinfo_proc *ps, time_t
void DarwinProcess_setFromLibprocPidinfo(DarwinProcess *proc, DarwinProcessList *dpl);
void DarwinProcess_scanThreads(DarwinProcess *dp);
#endif