- Pull from central
- ./mach try -b o -p linux,linux64,macosx64,win32,win64 -u none -t g2,g2-e10s --rebuild-talos 5
- Apply your commit
- ./mach try -b o -p linux,linux64,macosx64,win32,win64 -u none -t g2,g2-e10s --rebuild-talos 5
- Take revision IDs from the two try pushes and replace in:
- https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=OLDREV&newProject=try&newRevision=NEWREV&framework=1&filter=damp&showOnlyImportant=0
This file contains hidden or 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
function screenshot(win) { | |
let canvas = win.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"); | |
let width = win.innerWidth; | |
let height = win.innerHeight; | |
canvas.mozOpaque = true; | |
canvas.width = width; | |
canvas.height = height; | |
let ctx = canvas.getContext("2d"); | |
ctx.drawWindow(win, win.scrollX, win.scrollY, width, height, "#fff"); | |
info("Screenshot:" + canvas.toDataURL()); |
This file contains hidden or 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
import argparse, fileinput, glob, os, re | |
def get_keys_from_file(path): | |
if not os.path.exists(path): | |
print 'path: [%s] is invalid' % path | |
f = open(path, 'r') | |
lines = f.readlines() | |
f.close() |
This file contains hidden or 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
# ochameau's getWeakReference trick | |
let ref = require("chrome").Cu.getWeakReference(toolbox); | |
require("sdk/timers").setInterval(function () { | |
dump(" toolbox alive? "+ref.get()+"\n"); | |
}, 2000); | |
# most of the time we leak the toolbox and target objects. but | |
# that doesn't necessary leak any window. the leak reporter only | |
# cares about documents |
This file contains hidden or 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
var getCol = (x, y) => { | |
return pskl.utils.intToColor(pskl.app.piskelController.getLayerAt(0).frames[0].getPixel(x, y)); | |
}; |
This file contains hidden or 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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAB7klEQVR4nO3UQQ0AIADEMPybBg987rE2mYWdAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADArzsOYGY5IQMEpgwQyDJAIMsAgSwDBLIMEMgyQCDLAIEsAwSyDBDIMkAgywCBLAMEsgwQyDJAIMsAgSwDBLIMEMgyQCDLAIEsAwSyDBDIMkAgywCBLAMEsgwQyDJAIMsAgSwDBLIMEMi64wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+PAA3mV7hQiMke4AAAAASUVORK5CYII= |
This file contains hidden or 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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAB7klEQVR4nO3UQQ0AIADEMPybBg987rE2mYWdAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADArzsOYGY5IQMEpgwQyDJAIMsAgSwDBLIMEMgyQCDLAIEsAwSyDBDIMkAgywCBLAMEsgwQyDJAIMsAgSwDBLIMEMgyQCDLAIEsAwSyDBDIMkAgywCBLAMEsgwQyDJAIMsAgSwDBLIMEMi64wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+PAA3mV7hQiMke4AAAAASUVORK5CYII= |
This file contains hidden or 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
diff --git a/packages/devtools-local-toolbox/bin/development-server.js b/packages/devtools-local-toolbox/bin/development-server.js | |
index c1f34cf..fa50da3 100755 | |
--- a/packages/devtools-local-toolbox/bin/development-server.js | |
+++ b/packages/devtools-local-toolbox/bin/development-server.js | |
@@ -32,8 +32,8 @@ function httpGet(url, onResponse) { | |
}); | |
} | |
-function serveRoot(req, res) { | |
- const tplPath = path.join(__dirname, "../index.html"); |
This file contains hidden or 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
(function () { | |
var verticalSize = pskl.app.piskelController.getPiskel().getLayers().reduce(function (total, layer) { | |
var renderer = new pskl.rendering.FramesheetRenderer(layer.getFrames()); | |
total += renderer.renderAsCanvas(1).toDataURL().length; | |
return total; | |
}, 0); | |
console.log("Vertical size:", verticalSize); | |
var frameCount = pskl.app.piskelController.getFrameCount(); |
This file contains hidden or 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
var export_to_unit8_t = function () { | |
var HTML_NEW_LINE = '
'; | |
var width = pskl.app.piskelController.getWidth(); | |
var height = pskl.app.piskelController.getHeight(); | |
var frameCount = pskl.app.piskelController.getFrameCount(); | |
if (frameCount > 1) { | |
console.error('This export only supports one frame'); | |
} |