diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-07-14 11:46:16 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:52:57 -0300 |
commit | 907f8298a0337510f9f048df65a9f5d032f09d14 (patch) | |
tree | 9b80458388aba92ddb806fa11fe537ef845202a0 /darwin/DarwinProcess.h | |
parent | 57ab332d5a1f0f46b87049720a614e4ff46ee938 (diff) |
CPU per process implemented
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r-- | darwin/DarwinProcess.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h index 3c4f2e0b..c479acfd 100644 --- a/darwin/DarwinProcess.h +++ b/darwin/DarwinProcess.h @@ -14,8 +14,17 @@ in the source distribution for its full text. #include <sys/sysctl.h> +typedef struct DarwinProcess_ { + Process super; -Process* DarwinProcess_new(Settings* settings); + uint64_t utime; + uint64_t stime; +} DarwinProcess; + + +extern ProcessClass DarwinProcess_class; + +DarwinProcess* DarwinProcess_new(Settings* settings); void Process_delete(Object* cast); @@ -23,12 +32,10 @@ bool Process_isThread(Process* this); void DarwinProcess_setStartTime(Process *proc, struct extern_proc *ep, time_t now); -char *DarwinProcessList_getCmdLine(struct kinfo_proc* k, int show_args ); +char *DarwinProcess_getCmdLine(struct kinfo_proc* k, int show_args ); void DarwinProcess_setFromKInfoProc(Process *proc, struct kinfo_proc *ps, time_t now, bool exists); -void DarwinProcess_setFromLibprocPidinfo(Process *proc, DarwinProcessList *dpl, bool preExisting); - -void DarwinProcess_parseThreads(Process *proc, time_t now, bool preExisting); +void DarwinProcess_setFromLibprocPidinfo(DarwinProcess *proc, DarwinProcessList *dpl); #endif |