summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-08-24 23:20:38 +0000
committerHisham Muhammad <hisham@gobolinux.org>2010-08-24 23:20:38 +0000
commit6486229308cf7acc7a4ba7dd5f755cdb969372ef (patch)
tree380c7bd90256bc93d8babf0eda6fecefcfa06d74 /Process.c
parentc166e172a8f46c710fbba5996f8f332f4c4984ce (diff)
add support for steal/guest CPU time measurement
simplify processor data accounting (add CPUData structure) remove Process_clone trick
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/Process.c b/Process.c
index 6389f741..0fb175ea 100644
--- a/Process.c
+++ b/Process.c
@@ -471,27 +471,6 @@ Process* Process_new(struct ProcessList_ *pl) {
return this;
}
-Process* Process_clone(Process* this) {
- Process* copy = malloc(sizeof(Process));
- #if HAVE_TASKSTATS
- this->io_rchar = 0;
- this->io_wchar = 0;
- this->io_syscr = 0;
- this->io_syscw = 0;
- this->io_read_bytes = 0;
- this->io_rate_read_bps = 0;
- this->io_rate_read_time = 0;
- this->io_write_bytes = 0;
- this->io_rate_write_bps = 0;
- this->io_rate_write_time = 0;
- this->io_cancelled_write_bytes = 0;
- #endif
- memcpy(copy, this, sizeof(Process));
- this->comm = NULL;
- this->pid = 0;
- return copy;
-}
-
void Process_toggleTag(Process* this) {
this->tag = this->tag == true ? false : true;
}

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