asysmon-res.js.ctrl-threaddump.js Maven / Gradle / Ivy
angular.module('ASysMonApp').controller('CtrlThreadDump', function($scope, $http, $log, Rest, formatNumber) {
$('.btn').tooltip({
container: 'body',
html: true
});
$scope.expansionModel = {}; // bound to the DOM, used for initial rendering
$scope.shadowExpansionModel = {}; // continually updated, kept separate to allow for jQuery animations
$scope.hideReflection = true;
$scope.hideLibraries = true;
function initFromResponse(data) {
$scope.title = data.title;
$scope.threads = data.threads;
var appPkg = new RegExp(data.appPkg || '.');
for(var i=0; i<$scope.threads.length; i++) {
var t = $scope.threads[i];
var hasApplicationFrame = false;
for(var j=0; j