removed old timeline code

test-unit-sauce
Brian Ford 12 years ago
parent 033504ffe0
commit 4b7ece9d03

@ -1,7 +1,6 @@
panelApp.controller('PerfCtrl', function PerfCtrl($scope, appContext, filesystem) {
$scope.histogram = [];
$scope.timeline = [];
$scope.min = 0;
$scope.max = 100;
@ -45,13 +44,6 @@ panelApp.controller('PerfCtrl', function PerfCtrl($scope, appContext, filesystem
appContext.inspect(this.val.id);
};
var updateTimeline = function () {
var timeline = appContext.getTimeline();
if (timeline && timeline.length > $scope.timeline.length) {
$scope = $scope.concat(timeline.splice($scope.length - 1));
}
};
var updateHistogram = function () {
var info = appContext.getHistogram();
if (!info) {

@ -52,7 +52,6 @@ var inject = function () {
//var bootstrap = window.angular.bootstrap;
var debug = window.__ngDebug = {
watchers: {},
timeline: [],
watchExp: {},
watchList: {},
deps: []

@ -136,7 +136,6 @@ panelApp.factory('appContext', function(chromeExtension) {
// get histogram data
var histogram = [],
timeline,
deps;
// performance
@ -154,14 +153,12 @@ panelApp.factory('appContext', function(chromeExtension) {
}(window.__ngDebug.watchExp));
deps = __ngDebug.deps;
timeline = __ngDebug.timeline;
}
return {
roots: rootIds,
trees: trees,
histogram: histogram,
timeline: timeline,
deps: deps
};
},
@ -209,10 +206,6 @@ panelApp.factory('appContext', function(chromeExtension) {
// Getters
// -------
getTimeline: function () {
return _debugCache.timeline;
},
getHistogram: function () {
return _debugCache.histogram;
},
@ -255,12 +248,6 @@ panelApp.factory('appContext', function(chromeExtension) {
// Actions
// -------
clearTimeline: function (cb) {
chromeExtension.eval(function (window) {
window.__ngDebug.timeline = [];
}, cb);
},
clearHistogram: function (cb) {
chromeExtension.eval(function (window) {

@ -86,14 +86,6 @@
</div>
</div>
<!--
<h3>Timeline</h3>
<button ng-click="clear()">Clear Timeline</button>
<div style="height: 400px; background-color: blue; position: relative; overflow: scroll;">
<div ng-repeat="x in timeline" style="height: 50px; position: absolute; background-color: red;" ng-style="{width: (x.end - x.start) + 'px', left: x.start + 'px', top: $index * 50 + 'px'}"></div>
</div>
-->
<div class="span6">
<h3>Watch Expressions</h3>