Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
5,118 additions
and
1,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
# GDM configuration storage | |||
|
|||
[daemon] | |||
AutomaticLoginEnable=true | |||
AutomaticLogin=hurley | |||
|
|||
[security] | |||
|
|||
[xdmcp] | |||
|
|||
[greeter] | |||
|
|||
[chooser] | |||
|
|||
[debug] | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
#!/usr/bin/env python | |||
|
|||
import subprocess | |||
|
|||
SRWRAPPER = '/home/hurley/srhome/stoneridge/linux/user/srwrapper.py' | |||
|
|||
p = subprocess.Popen(['/usr/bin/gnome-terminal', '-t', 'Stone Ridge', | |||
'-e', SRWRAPPER]) | |||
p.wait() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
#!/usr/bin/env python | |||
|
|||
import subprocess | |||
import sys | |||
import time | |||
|
|||
SRHOME = '/home/hurley/srhome' | |||
SRPYTHON = '%s/stoneridge' % (SRHOME,) | |||
SRRUN = '%s/srrun.py' % (SRPYTHON,) | |||
SRWORKER = '%s/srworker.py' % (SRPYTHON,) | |||
SRINI = '%s/stoneridge.ini' % (SRHOME,) | |||
LOG = '%s/srworker.log' % (SRHOME,) | |||
|
|||
cli = [sys.executable, SRRUN, SRWORKER, '--config', SRINI, '--log', LOG] | |||
|
|||
p = subprocess.Popen(cli) | |||
p.wait() | |||
|
|||
while True: | |||
# Sleep indefinitely in case of failure, so we choose when to kill the | |||
# terminal. This isn't particularly useful on the actual infrastructure, | |||
# but it works great for debugging errors during testing. | |||
time.sleep(60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
|
|||
[Desktop Entry] | |||
Type=Application | |||
Exec=/home/hurley/srhome/stoneridge/linux/user/srterm.py | |||
Hidden=false | |||
X-GNOME-Autostart-enabled=true | |||
Name[en_US]=Stone Ridge | |||
Name=Stone Ridge | |||
Comment[en_US]=Start a terminal running the stone ridge worker | |||
Comment=Start a terminal running the stone ridge worker |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
#!/bin/sh | |||
|
|||
defaults write com.apple.Terminal 'Window Settings' -dict-add 'Stone Ridge' '{ CommandString = "/usr/local/bin/python /Users/hurley/srhome/stoneridge/srworker.py --config /Users/hurley/srhome/stoneridge.ini --log /Users/hurley/srhome/srworker.log"; ProfileCurrentVersion = "2.02"; RunCommandAsShell = 0; name = "Stone Ridge"; type = "Window Settings"; }' | |||
defaults write com.apple.Terminal 'Default Window Settings' 'Stone Ridge' | |||
defaults write com.apple.Terminal 'Startup Window Settings' 'Stone Ridge' | |||
osascript -e 'tell app "System Events" | |||
make login item at end with properties {path:"/Applications/Utilities/Terminal.app", hidden:false} | |||
end tell' | |||
echo "Setting auto login user (needs root privs)" | |||
sudo defaults write /Library/Preferences/com.apple.loginwindow.plist autoLoginUser hurley |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,65 @@ | |||
Pageload Test Component | |||
======================= | |||
|
|||
Usage: | |||
|
|||
./firefox -tp file:///path/to/manifest.txt [-tpargs...] | |||
|
|||
See ./firefox -help for other arguments. | |||
|
|||
|
|||
Manifest file format | |||
==================== | |||
|
|||
Comments in the manifest file start with a #. Each line may be: | |||
|
|||
* a URL (absolute or relative to the manifest) | |||
|
|||
This URL is added to the list of tests. | |||
|
|||
* one or more flags, followed by whitespace, followed by a URL | |||
|
|||
The only flag supported currently is '%', which indicates that | |||
a test will do its own timing. (See Self-timing Tests below.) | |||
|
|||
* "include" followed by whitespace, followed by a URL | |||
|
|||
Parse the given manifest file. | |||
|
|||
Self-timing Tests | |||
================= | |||
|
|||
Most timing tests are interested in timing how long it takes the page | |||
to load; that is, from the start of page loading until the 'load' | |||
event is dispatched. By default, this is what the pageloader will | |||
time. However, if a test URL has the % flag, the test is expected to | |||
report its own timing. For this purpose, the pageloader will provide | |||
a function named "tpRecordTime" in the test's global object that it | |||
should call once it has performed whatever timing it wants to do. | |||
The given value will be used as the timing result for this test. | |||
|
|||
Output format | |||
============= | |||
|
|||
The result is a dump to stdout via dump() -- | |||
browser.dom.window.dump.enabled must be set to true in the profile. | |||
|
|||
Sample output: | |||
|
|||
__start_tp_report | |||
_x_x_mozilla_page_load,778.5,NaN,NaN | |||
_x_x_mozilla_page_load_details,avgmedian|778.5|average|766.75|minimum|NaN|maximum|NaN|stddev|NaN|0;file:///c:/proj/mozilla-cvs/perf/tp2/base/www.cnn.com/index.html;778.5;766.75;722;1027;1027;788;777;722;780|... | |||
__end_tp_report | |||
|
|||
Note that the minimum, maximum, stddev are not calculated; they're | |||
always reported as NaN. (They were the minimum and maximum values of | |||
any sampled value, and the standard deviation across all sampled | |||
values -- not very useful.) | |||
|
|||
TODO | |||
==== | |||
|
|||
* Command line option to choose whether to run with or without browser chrome. Currently runs without. | |||
|
|||
* Tinderbox-dropping style output | |||
* better yet would be to teach tinderbox about JSON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
content srpl chrome/ | |||
component {E17FB86D-1CEB-4B67-8A6C-5B97AD068A7F} components/sr-cmdline.js | |||
contract @mozilla.org/commandlinehandler/general-startup;1?type=sr {E17FB86D-1CEB-4B67-8A6C-5B97AD068A7F} | |||
category command-line-handler m-sr @mozilla.org/commandlinehandler/general-startup;1?type=sr |
Oops, something went wrong.