jetbrains.buildServer.util
Class DiagnosticUtil

java.lang.Object
  extended by jetbrains.buildServer.util.DiagnosticUtil

public class DiagnosticUtil
extends java.lang.Object


Constructor Summary
DiagnosticUtil()
           
 
Method Summary
static java.lang.management.MemoryUsage getHeapMemoryUsage()
           
static java.io.File threadDumpToDirectory(java.io.File dir, java.lang.String summary)
           
static void threadDumpToLog(java.util.concurrent.ExecutorService executorService)
           
static void threadDumpToLog(NamedThreadFactory threadFactory)
           
static void threadDumpToStream(java.io.PrintStream out)
           
static java.lang.String threadDumpToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticUtil

public DiagnosticUtil()
Method Detail

threadDumpToLog

public static void threadDumpToLog(java.util.concurrent.ExecutorService executorService)

threadDumpToLog

public static void threadDumpToLog(@NotNull
                                   NamedThreadFactory threadFactory)

threadDumpToStream

public static void threadDumpToStream(@NotNull
                                      java.io.PrintStream out)

threadDumpToDirectory

public static java.io.File threadDumpToDirectory(@Nullable
                                                 java.io.File dir,
                                                 @Nullable
                                                 java.lang.String summary)

threadDumpToString

@NotNull
public static java.lang.String threadDumpToString()

getHeapMemoryUsage

@NotNull
public static java.lang.management.MemoryUsage getHeapMemoryUsage()