0

t_page and t_resp Not Being Beaconed

Hi,

I've downloaded and installed boomerang-0.9.1280532889.  On my local machine I have Apache running with WebLogic and my java application which I'd like to measure.  In my Apache root directory, I've placed the following files:

/boomerang/
  beacon.txt (contains one character)
/boomerang/javascript/
  boomerang-0.9.1280532889.js
  dns.js
  ipv6.js
  navtiming.js
  plugin.js
/boomerang/images/
  image-l.gif
  image-0.png
  image-1.png
  image-2.png
  image-3.png
  image-4.png
  image-5.png
  image-6.png

In my application, I've added the following to the main page template:
<head>
    <script type="text/javascript">
      var t_pagestart=new Date().getTime();
    </script>

    ...

    <script type="text/javascript">
      var t_headend = new Date().getTime();
    </script>
</head>
<body>

    ...

    <script src="/boomerang/javascript/boomerang-0.9.1280532889.js" type="text/javascript"></script>
    <script type="text/javascript">
BOOMR.init({
user_ip: "#{facesContext.externalContext.request.remoteAddr}",
beacon_url: "http://jhumphrey-dt.ni.com/boomerang/beacon.txt",
BW: {
base_url: "http://jhumphrey-dt.ni.com/boomerang/images/"
},
RT: {
cookie: "MyRT",
cookie_exp: 120
}
});
var t_bodyend = new Date().getTime();                        
BOOMR.plugins.RT.setTimer("t_head", t_headend - t_pagestart).
                setTimer("t_body", t_bodyend - t_headend).  
                setTimer("t_js", t_bodyend - t_jsstart);    
    </script>
</body>

I am requesting the application page via Firefox 3.6.20 and BOOMR is beaconing data into my Apache log.  I am getting the bandwidth, latency, t_done, and my t_other variables included in the beacon request (See below.)  What I can't figure out is how to get BOOMR to send t_page and t_resp back.  They are absent from the beacon requests.

127.0.0.1 - - [26/Aug/2011:09:45:13 -0500] 
"GET /boomerang/beacon.txt
?v=0.9
&bw=3312786
&lat=0
&bw_err=488724.12
&lat_err=0
&t_done=7340
&u=http%3A%2F%2Fjhumphrey-dt.ni.com%2Fadvisors%2Fpxi%2Fpages%2Fcommon%2Fintro.xhtml%3FconversationContext%3D5
&r=http%3A%2F%2Fjhumphrey-dt.ni.com%2Fadvisors%2Fpxi%2Fpages%2Fcommon%2Fintro.xhtml
&t_other=t_head|813,t_body|785,t_js|179
HTTP/1.1" 200 1 "http://jhumphrey-dt.ni.com/advisors/pxi/pages/common/intro.xhtml?conversationContext=5" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20"

This may be a newbie question, but I've been through the source code and I just can't figure out how to get the t_page and t_resp measurements to be made.  Any help is greatly appreciated.

Thanks,

James


      

   

by
1 Reply
  • to get t_page and t_resp, you either have to use a browser that supports the NavigationTiming API (IE 9+, Chrome or Firefox 7+) or you need to call BOOMR.plugins.RT.startTimer(&#39;t_page&#39;) yourself at the top of your page. &nbsp;If you load boomerang at the bottom of your page, then take a timestamp at the start of your page, and call&nbsp;BOOMR.plugins.RT.startTimer(&#39;t_page&#39;, start_page_time) after you&#39;ve loaded boomerang.
    0
This forum is locked.

Recent Posts

in Boomerang