User Tools

Site Tools


android-mobapps:documentation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
android-mobapps:documentation [2009/12/21 00:51]
tylerharter
android-mobapps:documentation [2009/12/21 00:59] (current)
tylerharter
Line 45: Line 45:
  
 === Server Side === === Server Side ===
 +Our server is running at mysql.cs.wisc.edu,​ username=harter. ​ post.php inserts posted data into the database. ​ Post fields are imei, table, and data.  imei is the identifier for the phone, table is the name of the table in the database where the data is to be inserted, and data is a "​multiline"​ field where the first line contains the names of the columns in the table and following lines contain data to be inserted. ​ Fields within a line are separated by commas, and lines are delimited by "​@@@"​. ​ The user/​application posting data to post.php is responsible for properly formatting data (for instance, putting quotes around strings), as post.php just blindly attempts to insert the data into the specified table.
  
 === Using Processor Load Calculator === === Using Processor Load Calculator ===
  
 This application is used to evaluate how well AppGrader grades applications. ​ The idea is that if AppGrader gives a bad CPU grade to an application,​ that application should be competing with other applications for CPU usage. ​ To see that this is actually the case, the ProcessorLoadCalculator runs in the background, incrementing a counter from 1 to 30M.  If the application that was given a bad grade is running, it should be hogging the CPU, causing the counter to count slower. ​ Every time ProcessorLoadCalculator reaches 30M, it writes an entry to /​sdcard/​processorCalc.txt that indicates the number of milliseconds it took to do the count. This application is used to evaluate how well AppGrader grades applications. ​ The idea is that if AppGrader gives a bad CPU grade to an application,​ that application should be competing with other applications for CPU usage. ​ To see that this is actually the case, the ProcessorLoadCalculator runs in the background, incrementing a counter from 1 to 30M.  If the application that was given a bad grade is running, it should be hogging the CPU, causing the counter to count slower. ​ Every time ProcessorLoadCalculator reaches 30M, it writes an entry to /​sdcard/​processorCalc.txt that indicates the number of milliseconds it took to do the count.
- 
-Here is a sample processorCalc.txt file: 
- 
-46353 
- 
-98846 
- 
-13793 
- 
-13630 
- 
-13626 
- 
-15045 
- 
-13757 
- 
-13516 
- 
-13701 
- 
- 
android-mobapps/documentation.1261378269.txt.gz ยท Last modified: 2009/12/21 00:51 by tylerharter