From 4b7ece9d038e4a2974afb8e41c3d1258f2ef6068 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Thu, 26 Jul 2012 11:32:49 -0700 Subject: [PATCH] removed old timeline code --- js/controllers/PerfCtrl.js | 8 -------- js/inject/debug.js | 1 - js/services/appContext.js | 13 ------------- panel.html | 8 -------- 4 files changed, 30 deletions(-) diff --git a/js/controllers/PerfCtrl.js b/js/controllers/PerfCtrl.js index 1a0786d..9958a17 100644 --- a/js/controllers/PerfCtrl.js +++ b/js/controllers/PerfCtrl.js @@ -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) { diff --git a/js/inject/debug.js b/js/inject/debug.js index ed83627..065c07b 100644 --- a/js/inject/debug.js +++ b/js/inject/debug.js @@ -52,7 +52,6 @@ var inject = function () { //var bootstrap = window.angular.bootstrap; var debug = window.__ngDebug = { watchers: {}, - timeline: [], watchExp: {}, watchList: {}, deps: [] diff --git a/js/services/appContext.js b/js/services/appContext.js index 962daea..0c28edb 100644 --- a/js/services/appContext.js +++ b/js/services/appContext.js @@ -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) { diff --git a/panel.html b/panel.html index 0a92faf..a48f6bf 100644 --- a/panel.html +++ b/panel.html @@ -86,14 +86,6 @@ - -

Watch Expressions