Skip to content

Instantly share code, notes, and snippets.

View wlach's full-sized avatar
👋

Will Lachance wlach

👋
View GitHub Profile
#!/usr/bin/env python
import sys
import videocapture
import numpy
from scipy import ndimage
import math
import multiprocessing
c = videocapture.Capture(sys.argv[1])
import matplotlib
import videocapture
import pandas as pd
import numpy
import scipy.stats
import requests
import math
%matplotlib inline
<!DOCTYPE html>
<html ng-app="perf">
<head>
<title>Treeherder Graphs</title>
<!-- build:css css/help.min.css -->
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<!-- endbuild -->
<link id="favicon" type="image/png" rel="shortcut icon" href="img/tree_open.png">
<style>
var perf = angular.module("perf", ['ngResource', 'ngRoute']);
perf.controller('PerfCtrl', [
'$scope', '$http', '$rootScope', '$routeParams', '$location',
function PerfCtrl($scope, $http, $rootScope, $routeParams,
$location) {
$scope.repos = [
{ 'name': 'mozilla-central' },
{ 'name': 'mozilla-inbound' },
{ 'name': 'fx-team' }
];
diff --git a/webapp/app/css/perf.css b/webapp/app/css/perf.css
index 4ff945d..b069dca 100644
--- a/webapp/app/css/perf.css
+++ b/webapp/app/css/perf.css
@@ -170,6 +170,16 @@ to { opacity: 0; }
color: white;
font-weight: bold;
}
+.subtest-regression {
+ background-color: red;
diff --git a/webapp/app/js/graphs.js b/webapp/app/js/graphs.js
index 17ac2f8..a638d69 100644
--- a/webapp/app/js/graphs.js
+++ b/webapp/app/js/graphs.js
@@ -7,11 +7,12 @@
perf.controller('GraphsCtrl', [
'$state', '$stateParams', '$scope', '$rootScope', '$location', '$modal',
'thServiceDomain', '$http', '$q', '$timeout', 'PhSeries',
- 'ThRepositoryModel', 'ThOptionCollectionModel', 'phTimeRanges',
+ 'ThRepositoryModel', 'ThOptionCollectionModel', 'ThResultSetModel',
diff --git a/webapp/app/js/perf.js b/webapp/app/js/perf.js
index b9681ca..908d60f 100644
--- a/webapp/app/js/perf.js
+++ b/webapp/app/js/perf.js
@@ -82,6 +82,8 @@ perf.factory('PhSeries', ['$http', 'thServiceDomain', function($http, thServiceD
});
if (series) {
+ // if it is not a summary series, then find the summary series
+ // corresponding to it (could be more than one) and use that
@wlach
wlach / gist:e39d86439a5202de70da
Created May 25, 2015 15:41
Partial implementation
diff --git a/ui/partials/perf/graphsctrl.html b/ui/partials/perf/graphsctrl.html
index a2729a7..ca5af3e 100644
--- a/ui/partials/perf/graphsctrl.html
+++ b/ui/partials/perf/graphsctrl.html
@@ -1,6 +1,9 @@
<div class="container-fluid">
<div class="ph-horizontal-layout">
<div id="graph-chooser">
+ <div ng-show="seriesList.length == 0">
+ Nothing here yet.
diff --git a/ui/js/graphs.js b/ui/js/graphs.js
index cd3263e..0cdf79e 100644
--- a/ui/js/graphs.js
+++ b/ui/js/graphs.js
@@ -562,6 +562,17 @@ perf.controller('GraphsCtrl', [
$scope.seriesList.push(seriesSummary);
});
$q.all($scope.seriesList.map(getSeriesData)).then(function() {
+ console.log($scope.seriesList);
+ var maxPoint = _.max(
libtool: link: gcc -g -O2 -Wall -o gnomeshell-taskpanel gnomeshell_taskpanel-gnomeshell-taskpanel.o gnomeshell_taskpanel-shell-panel-window.o -L/home/wlach/gnome-shell/lib64 -L/lib64 -lwnck-1 /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so -lpangoft2-1.0 /usr/lib64/libgdk_pixbuf-2.0.so -lgio-2.0 -lpangocairo-1.0 /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so -lpng12 /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so -lXau -ldl -lm -lpango-1.0 /usr/lib64/libfreetype.so -lz -lfontconfig -lgmodule-2.0 /usr/lib64/libdbus-glib-1.so -lnsl -ldbus-1 -lgobject-2.0 -lglib-2.0
/home/wlach/gnome-shell/bin/g-ir-scanner \
--namespace=Big \
--nsversion=1.0 \
--include=ClutterCairo-0.8 \
--program=metacity \
--program-arg=--mutter-plugins=$(pwd)/libgnome-shell.la \
big/box.h big/rectangle.h big/theme-image.h \
big/box.c big/rectangle.c big/th