diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-02-18 14:57:09 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2016-02-18 14:57:09 -0200 |
commit | 5ee6715843902da1aa40782a9d00f41ca855a2ee (patch) | |
tree | 82175584a26771bdb0e084a684450cb8c4f2c2e7 /darwin/DarwinProcess.h | |
parent | c18309466d0974fd839c5b8c61edc590447092d4 (diff) |
Scan threads for process state information.
Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread
and https://github.com/max-horvath/htop-osx/blob/e86692e869e30b0bc7264b3675d2a4014866ef46/ProcessList.c
This should be a fix for #361.
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r-- | darwin/DarwinProcess.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h index c479acfd..4739c9d6 100644 --- a/darwin/DarwinProcess.h +++ b/darwin/DarwinProcess.h @@ -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 |