Skip to content

Commit a216c64

Browse files
committed
Add thread names for easier debugging and profiling
1 parent 2ab6b31 commit a216c64

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

app/src/processing/app/EditorStatus.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public void run() {
162162
}
163163
}
164164
};
165+
thread.setName("Editor Status");
165166
thread.start();
166167
}
167168

app/src/processing/app/SingleInstance.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void run() {
115115
}
116116
}
117117
}
118-
}).start();
118+
}, "SingleInstance Server").start();
119119

120120
} catch (IOException e) {
121121
Base.log("Could not create single instance server.", e);
@@ -170,4 +170,4 @@ static boolean sendArguments(String[] args) { //, long timeout) {
170170
}
171171
return false;
172172
}
173-
}
173+
}

app/src/processing/app/UpdateCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void run() {
7171
// }
7272
}
7373
}
74-
}).start();
74+
}, "Update Checker").start();
7575
}
7676

7777

app/src/processing/app/contrib/ContributionListing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public void run() {
370370
}
371371
downloadingListingLock.unlock();
372372
}
373-
}).start();
373+
}, "Contribution List Downloader").start();
374374
}
375375

376376

app/src/processing/app/contrib/ContributionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void run() {
165165
status.setErrorMessage("Could not write to temporary directory.");
166166
}
167167
}
168-
}).start();
168+
}, "Contribution Installer").start();
169169
}
170170

171171

@@ -224,7 +224,7 @@ public void run() {
224224
+ ad.getName());
225225
}
226226
}
227-
}).start();
227+
}, "Contribution Installer").start();
228228
}
229229

230230

app/src/processing/app/contrib/LocalContribution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public void run() {
349349
status,
350350
ContributionListing.getInstance());
351351
}
352-
}).start();
352+
}, "Contribution Uninstaller").start();
353353
}
354354

355355

0 commit comments

Comments
 (0)