diff options
author | Anand Avati <avati@redhat.com> | 2014-03-29 06:48:52 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-05-05 17:27:51 -0700 |
commit | 71ad38b3f86bdb0c4e9120b58ff451a6711ead9d (patch) | |
tree | 1db90401f545efdefdbf0ca89c92f7337cd1a4cc /libglusterfs/src/statedump.c | |
parent | 9021be1fc1a9460438ce74dc5df091834a0bdae0 (diff) |
mem-accounting: store type string and print in meta
Change-Id: Ied1de473c72967110b54f033768f7ac60bf66edc
BUG: 1089216
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/7541
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'libglusterfs/src/statedump.c')
-rw-r--r-- | libglusterfs/src/statedump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index 5b41e86791a..f9e8a0c1ba4 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -238,6 +238,7 @@ gf_proc_dump_xlator_mem_info (xlator_t *xl) gf_proc_dump_add_section ("%s.%s - usage-type %d memusage", xl->type, xl->name, i); + gf_proc_dump_write ("type", "%s", xl->mem_acct.rec[i].typestr); gf_proc_dump_write ("size", "%u", xl->mem_acct.rec[i].size); gf_proc_dump_write ("num_allocs", "%u", xl->mem_acct.rec[i].num_allocs); |