|
|
Reproduce bug(s)
|
|
Was able to reproduce bug for sqlite pgo.
|
Document how to reproduce bug(s).
|
|
To enable PGO for sqlite a line must be commented in a make file.
in path/to/src/db/sqlite/src/Makefile.in add a hash to the line NO_PROFILE_GUIDED_OPTIMIZE = 1 should look like #NO_PROFILE_GUIDED_OPTIMIZE = 1
The build firefox with make -f client.mk profiledbuild
in the .mozconfig file you'll need an extra parameter mk_add_options PROFILE_GEN_SCRIPT="sh script/to/run.sh"
My Script file has the following:
export NO_EM_RESTART=1 #this means 'do not restart for any reason' during automation we do not want any restarting
mkdir $OBJDIR/_profileprofile
cd $OBJDIR/_tests/testing/mochitest
python runtests.py --test-path=browser/ --autorun --close-when-done
|
Hone in on cause of bug(s).
|
|
Turns out the bug is in the sqlite3.c file. I can reproduce the error when creating a stand alone sqlite application and enabling PGO on the application.
|
Running xpcshell and Mochitest against PGO build.
|
|
Since firefox right out crashes I am unable to run Mochitests but the xpcshell tests do run until they hit the storage tests.
SQLite PGO Errors in xpcshell ( Oct 16th, 2008 )
|
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_bug-365166.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_bug-365166.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_bug-393952.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_bug-393952.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_bug-429521.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_bug-429521.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_bug-444233.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_bug-444233.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_connection_executeAsync.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_connection_executeAsync.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_like.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_like.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
TEST-UNEXPECTED-FAIL | ../../_tests/xpcshell-simple/test_storage/unit/test_like_escape.js | test failed, see log
../../_tests/xpcshell-simple/test_storage/unit/test_like_escape.js.log:
>>>>>>>
*** Storage Tests: Trying to close!
<<<<<<<
make[2]: *** [check] Interrupt
make[1]: *** [check] Interrupt
make: *** [check] Interrupt
|
|
|
Create strategy for profiling Firefox to improve performance.
|
|
I tried different approaches to profiling for Firefox to improve its performance but I was not able to help it at all. I have concluded that the existing script of opening and closing the browser is more than enough for profiling. The browser is rendered using the same components to render and load web pages this means profiling the loading and rendering of the browser will optimize the rendering and loading of web pages.
|
Deliverable
|
|
I have updated the bug 419893 with how to reproduce the bug, a text file of the errors, a zip file with the source code for my test app to produce pgo errors with sqlite as a stand alone app.
|