diff options
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/statedump.c | 15 | ||||
-rw-r--r-- | libglusterfs/src/statedump.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index f9e8a0c1ba4..134dbd4f8f5 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -965,3 +965,18 @@ gf_proc_dump_xlator_meminfo (xlator_t *this, strfd_t *strfd) } gf_proc_dump_unlock (); } + + +void +gf_proc_dump_xlator_profile (xlator_t *this, strfd_t *strfd) +{ + gf_proc_dump_lock (); + { + gf_dump_strfd = strfd; + + gf_proc_dump_latency_info (this); + + gf_dump_strfd = NULL; + } + gf_proc_dump_unlock (); +} diff --git a/libglusterfs/src/statedump.h b/libglusterfs/src/statedump.h index 3251387e220..39a68bd69da 100644 --- a/libglusterfs/src/statedump.h +++ b/libglusterfs/src/statedump.h @@ -101,4 +101,6 @@ void gf_proc_dump_xlator_history (xlator_t *this, strfd_t *strfd); void gf_proc_dump_xlator_meminfo (xlator_t *this, strfd_t *strfd); +void gf_proc_dump_xlator_profile (xlator_t *this, strfd_t *strfd); + #endif /* STATEDUMP_H */ |