add peak sps to stats and a command to reset it

This commit is contained in:
Anthony Minessale
2013-07-19 15:16:42 -05:00
parent 75bdc43d82
commit c510f3f52e
7 changed files with 27 additions and 4 deletions
+1
View File
@@ -240,6 +240,7 @@ struct switch_runtime {
uint32_t sps_total;
int32_t sps;
int32_t sps_last;
int32_t sps_peak;
switch_log_level_t hard_log_level;
char *mailer_app;
char *mailer_app_args;
+2 -1
View File
@@ -1887,7 +1887,8 @@ typedef enum {
SCSC_DEBUG_SQL,
SCSC_SQL,
SCSC_API_EXPANSION,
SCSC_RECOVER
SCSC_RECOVER,
SCSC_SPS_PEAK
} switch_session_ctl_t;
typedef enum {