diff --git a/front/src/js/controllers/timelineCtrl.js b/front/src/js/controllers/timelineCtrl.js index f21046e..9105831 100644 --- a/front/src/js/controllers/timelineCtrl.js +++ b/front/src/js/controllers/timelineCtrl.js @@ -111,38 +111,6 @@ timelineCtrl.controller('TimelineCtrl', ['$scope', '$rootScope', '$routeParams', $scope.profilerData = $scope.executionTree; } - - function parseBacktrace(str) { - if (!str) { - return null; - } - - var out = []; - var splited = str.split(' / '); - splited.forEach(function(trace) { - var fnName = null, fileAndLine; - - var withFnResult = /^([^\s\(]+) \((.+:\d+)\)$/.exec(trace); - if (withFnResult === null) { - fileAndLine = trace; - } else { - fnName = withFnResult[1]; - fileAndLine = withFnResult[2]; - } - - var fileAndLineSplit = /^(.*):(\d+)$/.exec(fileAndLine); - var filePath = fileAndLineSplit[1]; - var line = fileAndLineSplit[2]; - - out.push({ - fnName: fnName, - filePath: filePath, - line: line - }); - }); - return out; - } - $scope.changeScript = function() { initExecutionTree(); initTimeline(); @@ -167,23 +135,6 @@ timelineCtrl.controller('TimelineCtrl', ['$scope', '$rootScope', '$routeParams', return lineIndex; }; - $scope.onNodeDetailsClick = function(node) { - var isOpen = node.showDetails; - if (!isOpen) { - // Close all other nodes - $scope.executionTree.forEach(function(currentNode) { - currentNode.showDetails = false; - }); - - // Parse the backtrace - if (!node.parsedBacktrace) { - node.parsedBacktrace = parseBacktrace(node.data.backtrace); - } - - } - node.showDetails = !isOpen; - }; - $scope.backToDashboard = function() { $location.path('/result/' + $scope.runId); diff --git a/front/src/js/directives/offendersDirectives.js b/front/src/js/directives/offendersDirectives.js index 18aecd6..66cf50f 100644 --- a/front/src/js/directives/offendersDirectives.js +++ b/front/src/js/directives/offendersDirectives.js @@ -560,8 +560,8 @@ } else { for (var i = 0 ; i < parsedBacktrace.length ; i++) { html += '