introduce ThreadDumper.dumpForDebug

GitOrigin-RevId: d79d123e9994c1d53544d66db330d308cc7bf180
This commit is contained in:
Gregory.Shrago
2024-06-18 01:49:28 +04:00
committed by intellij-monorepo-bot
parent 0d546ea6a4
commit 0011b7d7c3

View File

@@ -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);