Changes

Jump to: navigation, search

Mozilla Metrics Server Collection

157 bytes added, 16:16, 21 October 2007
no edit summary
== Project Leader(s) ==
[[User:Simon|Simon Jung(simonJ)]]
== Project Contributor(s) ==
== Project Details ==
 
'''PROJECT SPECIFICATIONS FOR VERSION 0.1'''
 
This project will require me to do the following:
 
*Download and patch metrics extension
*Compile the metrics extension with Minefield
*Intialize the metrics extension using a config file
*Send a config file from server to client extension
*Recieve data from the metrics extension
*Save recieved data to a file
 
'''OVERVIEW'''
clears the old data and resets the config file. This process will continue in a loop.
'''PROJECT SPECIFICATIONS FOR VERSION 0.1'''
 
This project will require me to do the following:
 
-Download and patch metrics extension
 
-Compile the metrics extension with Minefield
 
-Intialize the metrics extension using a config file
 
-Send a config file from server to client extension
 
-Recieve data from the metrics extension
 
-Save recieved data to a file
'''SAMPLE DATA'''
[http://matrix.senecac.on.ca/~sljung/metrics/metrics.txt Server CGI Script]
 
'''Project COMPLICATIONS & SOLUTIONS'''
1. *There seems to be a link problem when trying to compile the extension in windows xp. Reading the source code, andwith the help of luser, I was able to figure out some problems within the code. Minor changes were made to make filesin both the "/extension/metrics/build" and "/extensions/metrics/test" folders; Added "USE_STATIC_LIBS=1" so that thecompiler knows to use the static library. Will create a patch and post on bugzilla once I'm done.
2. *Echoing a file back to the extension was pretty straightforward; however, recieving the proper data back was moredifficult. Initially, I assumed the data being sent back was an xml file but after reading the source code in-depth,I found that the data was actually compressed with BZIP (x.bz2).
3. *Another problem, similar to problem 2, was that my while loop to read stdin was not recieving all the data properly.With the help of "ctyler" I was able to recieve the data in-tact.
== Project News ==
-Thursday, October 18th 2007- *Finally compiled a working version of Minefield; however there is a problem compiling the Metrics extension; error LNK2005.
-Friday, October 19th 2007-Once I fixed *Fixed the link errors with minor changes to the source code (detail above), I attempted *Attempted to create a server scriptthat can handle the request from the extension.
-Saturday, October 20th 2007-*Server script is initializing the extension; however all attempts to read the data being sent to the server has failed.The data seems to be jibberish.
-Saturday, October 20th 2007-*Created a simple html page to test the server script. The html page basically allows me to send xml docs through a http post.*Tested server script to see if it is getting the right data.
-Sunday, October 21st 2007-*The server script and extension are finally working together fine. *A config file is being sent back and the data is being recieved.
== Resources ==
Project specifications by Alex Polvi:*[http://wiki.mozilla.org/User:Polvi/Instrumentation:RequirementsV01 RequirementsV01]
Bugs related to project at Bugzilla:*[https://bugzilla.mozilla.org/show_bug.cgi?id=399869 BUG399869]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=393881 BUG393881]
Source Code:*[http://mxr.mozilla.org/seamonkey/source/extensions/metrics/src/ Metrics Source Code @ MXR Mozilla]
1
edit

Navigation menu