Add thread names for easier debugging and profiling

This commit is contained in:
Federico Bond
2014-08-03 20:15:35 -03:00
parent 12d7496c90
commit a70006da49
6 changed files with 8 additions and 7 deletions
+1
View File
@@ -162,6 +162,7 @@ public class EditorStatus extends JPanel {
}
}
};
thread.setName("Editor Status");
thread.start();
}
+2 -2
View File
@@ -115,7 +115,7 @@ public class SingleInstance {
}
}
}
}).start();
}, "SingleInstance Server").start();
} catch (IOException e) {
Base.log("Could not create single instance server.", e);
@@ -170,4 +170,4 @@ public class SingleInstance {
}
return false;
}
}
}
+1 -1
View File
@@ -71,7 +71,7 @@ public class UpdateCheck {
// }
}
}
}).start();
}, "Update Checker").start();
}
@@ -370,7 +370,7 @@ public class ContributionListing {
}
downloadingListingLock.unlock();
}
}).start();
}, "Contribution List Downloader").start();
}
@@ -165,7 +165,7 @@ public class ContributionManager {
status.setErrorMessage("Could not write to temporary directory.");
}
}
}).start();
}, "Contribution Installer").start();
}
@@ -224,7 +224,7 @@ public class ContributionManager {
+ ad.getName());
}
}
}).start();
}, "Contribution Installer").start();
}
@@ -349,7 +349,7 @@ public abstract class LocalContribution extends Contribution {
status,
ContributionListing.getInstance());
}
}).start();
}, "Contribution Uninstaller").start();
}