Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mx_proc: Remove now unused field sum_rss from struct mx_proc_info
  • Loading branch information
donald committed Apr 2, 2022
1 parent 2e95600 commit 3232f06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions mx_proc.c
Expand Up @@ -166,7 +166,6 @@ static void mx_proc_tree_update_parent_pinfo(struct mx_proc_tree_node *this, str
if (!this)
return;

this->pinfo.sum_rss += pinfo->sum_rss;
this->pinfo.sum_rss_anon += pinfo->sum_rss_anon;

mx_proc_tree_update_parent_pinfo(this->parent, pinfo);
Expand Down Expand Up @@ -269,7 +268,6 @@ static struct mx_proc_tree_node *mx_proc_tree_add(struct mx_proc_tree *pt, struc
pt->nentries++;

new->pinfo.pstat = pps;
new->pinfo.sum_rss = pps->rss;
new->pinfo.sum_rss_anon = pps->rss_anon;

if (!(pt->root)) {
Expand Down
1 change: 0 additions & 1 deletion mx_proc.h
Expand Up @@ -6,7 +6,6 @@
struct mx_proc_info {
struct mx_proc_pid_stat *pstat;

unsigned long long int sum_rss;
unsigned long long int sum_rss_anon;
};

Expand Down

0 comments on commit 3232f06

Please sign in to comment.