Class Diagnostics

java.lang.Object
org.variantsync.diffdetective.util.Diagnostics

public class Diagnostics extends Object
Human readable diagnostic information bundle.

This is a singleton.

Adapted from https://stackoverflow.com/a/8973770/5410757

  • Field Details

    • INSTANCE

      public static final org.variantsync.functjonal.Lazy<Diagnostics> INSTANCE
    • runtime

      private final Runtime runtime
  • Constructor Details

    • Diagnostics

      private Diagnostics()
  • Method Details

    • info

      public String info()
      Human readable information about current memory usage and the running machine.
    • osName

      public String osName()
    • osVersion

      public String osVersion()
    • osArch

      public String osArch()
      Returns the architecture of the running system.
    • getNumberOfAvailableProcessors

      public int getNumberOfAvailableProcessors()
    • B2GB

      private static double B2GB(long bytes)
      Convert Bytes into Gigabytes.
    • memInfo

      public String memInfo()
      Human readable information about the current memory usage.
    • osInfo

      public String osInfo()
      Human readable information about the running machine.