summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-02-18 14:57:09 -0200
committerHisham Muhammad <hisham@gobolinux.org>2016-02-18 14:57:09 -0200
commit5ee6715843902da1aa40782a9d00f41ca855a2ee (patch)
tree82175584a26771bdb0e084a684450cb8c4f2c2e7 /darwin/DarwinProcess.h
parentc18309466d0974fd839c5b8c61edc590447092d4 (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.h2
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy