diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-01 22:26:51 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-01 22:26:51 +0000 |
commit | ac7935290cdb659184162ed690c7a8251eb353ef (patch) | |
tree | 7eb05eb50921a17b8a6273ded71a2bdc90036449 /pjsip-apps/src/pjsip-perf/pjsip_perf.h | |
parent | 486fe5f8d2bfdc2a646ce65e47e2b632e6b0de1e (diff) |
Added logging in pjsip-perf
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@259 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pjsip-perf/pjsip_perf.h')
-rw-r--r-- | pjsip-apps/src/pjsip-perf/pjsip_perf.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/pjsip-apps/src/pjsip-perf/pjsip_perf.h b/pjsip-apps/src/pjsip-perf/pjsip_perf.h index f84a37f3..6c5372e3 100644 --- a/pjsip-apps/src/pjsip-perf/pjsip_perf.h +++ b/pjsip-apps/src/pjsip-perf/pjsip_perf.h @@ -35,13 +35,15 @@ struct batch { PJ_DECL_LIST_MEMBER(struct batch); - unsigned rate; - unsigned started; - unsigned success; - unsigned failed; - pj_time_val start_time; - pj_time_val spawned_time; - pj_time_val end_time; + unsigned rate; /**< How many tasks to perform */ + + unsigned started; /**< # of tasks started. */ + unsigned success; /**< # of tasks completed successfully. */ + unsigned failed; /**< # of failed tasks. */ + + pj_time_val start_time; /**< Start time of the tests. */ + pj_time_val spawned_time; /**< Time when all tasks has been started. */ + pj_time_val end_time; /**< Time when all tasks has completed. */ }; /** @@ -112,6 +114,11 @@ struct pjsip_perf_settings pjsip_endpoint *endpt; pj_mutex_t *mutex; + /* Misc: */ + int log_level; + int app_log_level; + char *log_file; + /* Network: */ int local_port; @@ -146,6 +153,12 @@ struct pjsip_perf_settings /* Test control: */ session *session; pj_timer_entry timer; + + /* Counters: */ + pj_uint32_t tx_req; + pj_uint32_t tx_res; + pj_uint32_t rx_req; + pj_uint32_t rx_res; }; |