mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
introduce ThreadDumper.dumpForDebug
GitOrigin-RevId: d79d123e9994c1d53544d66db330d308cc7bf180
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0d546ea6a4
commit
0011b7d7c3
@@ -26,6 +26,15 @@ public final class ThreadDumper {
|
||||
private ThreadDumper() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Evaluate to get coroutine dump in debug sessions
|
||||
* @noinspection unused
|
||||
*/
|
||||
@Internal
|
||||
public static @NotNull String dumpForDebug() {
|
||||
return getThreadDumpInfo(getThreadInfos(), true).getRawDump();
|
||||
}
|
||||
|
||||
public static @NotNull String dumpThreadsToString() {
|
||||
StringWriter writer = new StringWriter();
|
||||
dumpThreadInfos(getThreadInfos(), writer);
|
||||
|
||||
Reference in New Issue
Block a user