Firefox/Projects/StartupPerformance/MeasuringStartup: Difference between revisions

Formatting...
No edit summary
(Formatting...)
Line 4: Line 4:
#create a new profile, run Firefox with it at least once, so all files are created, etc  
#create a new profile, run Firefox with it at least once, so all files are created, etc  
#execute this command, with your profile name substituted, and invoking firefox in a way appropriate for your platform:
#execute this command, with your profile name substituted, and invoking firefox in a way appropriate for your platform:
<pre><code>./firefox -P YourProfileName -no-remote file:///..../startup.html#`python -c 'import time; print int(time.time() * 1000);'` </code><code></code></pre>  
<pre>./firefox -P YourProfileName -no-remote file:///..../startup.html#`python -c 'import time; print int(time.time() * 1000);'`</pre>  
== Setup on Windows  ==
== Setup on Windows  ==


Line 13: Line 13:
#Add python.exe or its containing folder to the PATH (or use the full path to the executable in the command below).<br>  
#Add python.exe or its containing folder to the PATH (or use the full path to the executable in the command below).<br>  
#In the Cygwin console, run the following command:<br>
#In the Cygwin console, run the following command:<br>
<pre>/cygdrive/c/.../firefox.exe -P YourProfileName -no-remote file:///C:/.../startup.html#`python.exe -c 'import t
<pre>/cygdrive/c/.../firefox.exe -P YourProfileName -no-remote file:///C:/.../startup.html#`python.exe -c 'import time; import sys; sys.stdout.write(str(int(time.time() * 1000)));'`
ime; import sys; sys.stdout.write(str(int(time.time() * 1000)));'`
</pre>  
</pre>  
Startup times using this method will be a little bloated due to the overhead introduced by the Cygwin console, but should still be reliable if compared with each other.<br>  
Startup times using this method will be a little bloated due to the overhead introduced by the Cygwin console, but should still be reliable if compared with each other.<br>  
canmove, Confirmed users
1,448

edits