<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>oh ok thank you.<br>Is there any way to get it to log the time for each transaction?I 'm trying to get a plot of the processing time for each message. i tried changing the granularity to 1 but i got almost the same thing<br><br>[ msgs/total/min/max/avg - LR: 100/149722/451/2520/1497.220000 | GB: 300/424869/430/3781/1416.230000]<br><br>also is is still accurate that module reports the logs in micro seconds?<br><br><div><hr id="stopSpelling">Date: Tue, 4 Nov 2014 10:31:30 +0100<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] benchmark module<br><br>
Regarding the log levels, the doc of the module was out of sync with
the source code values. I pushed an update to the docs.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 03/11/14 23:12, bob sacamano wrote:<br>
<blockquote cite="mid:SNT148-W7422BF1074511905FB4953CD990@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">thank you the change made things start to work. <br>
<br>
Out of curiosity why was it necessary to change the log level to
"1" according to the module webpage 1 is for warning messages. <br>
in my log file they show up as<br>
<br>
NOTICE: benchmark [benchmark.c:351]: _bm_log_timer():
benchmark (timer test [0]): 1041 [ msgs/total/min/max/avg - LR:
100/107481/694/1830/1074.810000 | GB:
100/107481/694/1830/1074.810000]<br>
<br>
if i set the log level as 2 for 2 - L_NOTICE<br>
INFO: benchmark [benchmark.c:351]: _bm_log_timer(): benchmark
(timer grr [0]): 960 [ msgs/total/min/max/avg - LR:
100/96361/835/1265/963.610000 | GB:
1000/982959/664/3033/982.959000]<br>
<br>
for any one else trying i also had to increase the allowable
size of log files and the amount of rotate files<br>
<br>
<div>
<hr id="ecxstopSpelling">Date: Mon, 3 Nov 2014 11:38:15 +0100<br>
From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: Re: [SR-Users] benchmark module<br>
<br>
Hello,<br>
<br>
<div class="ecxmoz-cite-prefix">On 03/11/14 04:25, bob
sacamano wrote:<br>
</div>
<blockquote cite="mid:SNT148-W343EEA182CD727A2ADA049CD990@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">hello, i was wondering where does this module
write the logs? Nothing shows up in my syslog. If i
replace the benchmark parts in the route with xlog for
example xlog( "L_INFO", "$Ts " ); this shows up
fine in syslog<br>
<br>
heres what u have in my config file:<br>
<br>
modparam("benchmark", "enable", 1)<br>
modparam("benchmark", "granularity", 100)<br>
modparam("benchmark", "loglevel", 3)<br>
<br>
if(is_method("REGISTER"))<br>
{<br>
bm_start_timer("test");<br>
save("location");<br>
bm_log_timer("test");<br>
exit;<br>
}<br>
<br>
<br>
I have been searching but cant find any info on it </div>
</blockquote>
you have:<br>
<br>
modparam("benchmark", "loglevel", 3)<br>
<br>
Set that to lower value, like:<br>
<br>
modparam("benchmark", "loglevel", 1)<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Nov 24-27, Berlin - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
<br>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Nov 24-27, Berlin - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</div> </div></body>
</html>