Skip to content

Instantly share code, notes, and snippets.

@lorenzoongithub
Created June 3, 2016 21:04
Show Gist options
  • Save lorenzoongithub/01fdf87f9f1a4c60a41ba529d9cd534e to your computer and use it in GitHub Desktop.
Save lorenzoongithub/01fdf87f9f1a4c60a41ba529d9cd534e to your computer and use it in GitHub Desktop.
//
// Prints all threads
//
var threads = java.lang.Thread.getAllStackTraces().keySet().toArray();
var str ='';
for (var i=0;i<threads.length;i++) {
str+=threads[i]+' - '+threads[i].getState()+'\n';
}
str;
@micayil
Copy link

micayil commented Jun 3, 2016

کس عمت

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment