diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-09 10:06:44 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-09 10:06:44 +0000 |
commit | 0d7115c7157804b795c34c8a8159a0bf7b002a94 (patch) | |
tree | ec725654d69d48987985d48baffbe672e10724be /pjsip/src/test-pjsip | |
parent | a567dd53450218eb529055ea47d6453c2ea4c9bc (diff) |
Report peak memory used upon exiting
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@595 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test-pjsip')
-rw-r--r-- | pjsip/src/test-pjsip/test.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/pjsip/src/test-pjsip/test.c b/pjsip/src/test-pjsip/test.c index 2b353ad9..2eecf83f 100644 --- a/pjsip/src/test-pjsip/test.c +++ b/pjsip/src/test-pjsip/test.c @@ -343,17 +343,8 @@ on_return: flush_events(500); /* Dumping memory pool usage */ - { - pj_pool_t *p; - unsigned sz = 0; - p = caching_pool.used_list.next; - while (p != (pj_pool_t*)&caching_pool.used_list) { - sz += pj_pool_get_capacity(p); - p = p->next; - } - PJ_LOG(3,(THIS_FILE, "Caching pool total capacity=%u", - caching_pool.capacity + sz)); - } + PJ_LOG(3,(THIS_FILE, "Peak memory size=%u MB", + caching_pool.peak_used_size / 1000000)); pjsip_endpt_destroy(endpt); pj_caching_pool_destroy(&caching_pool); |