aboutsummaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:01:17 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:01:17 +0200
commitadefe52ce2ad43c442c0b40bfe637e238e454246 (patch)
tree1be4d43e90ea340992e3068c1348196a6e4b145c /darwin/DarwinProcess.h
parent0063095c92e95190a0376ad245509345e5b690ed (diff)
parent8c82a38002ce09db2a0b83dab8b598cf1ab0596c (diff)
downloaddebian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.tar.gz
debian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.tar.bz2
debian_htop-adefe52ce2ad43c442c0b40bfe637e238e454246.zip
Merge tag 'upstream/2.0.1'
Upstream version 2.0.1
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r--darwin/DarwinProcess.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h
index c479acf..df1a79f 100644
--- a/darwin/DarwinProcess.h
+++ b/darwin/DarwinProcess.h
@@ -32,10 +32,17 @@ bool Process_isThread(Process* this);
void DarwinProcess_setStartTime(Process *proc, struct extern_proc *ep, time_t now);
-char *DarwinProcess_getCmdLine(struct kinfo_proc* k, int show_args );
+char *DarwinProcess_getCmdLine(struct kinfo_proc* k, int* basenameOffset);
void DarwinProcess_setFromKInfoProc(Process *proc, struct kinfo_proc *ps, time_t now, bool exists);
void DarwinProcess_setFromLibprocPidinfo(DarwinProcess *proc, DarwinProcessList *dpl);
+/*
+ * 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
+ */
+void DarwinProcess_scanThreads(DarwinProcess *dp);
+
#endif

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