Class DiskProfiler

java.lang.Object
org.apache.wayang.profiler.hardware.DiskProfiler

public class DiskProfiler extends Object
Profiles the reading and writing speed to some directory.
  • Constructor Details

    • DiskProfiler

      public DiskProfiler(String testFileURl)
  • Method Details

    • profile

      public String profile(int sizeInMB)
      Writes and reads a file and measures the elapsed time.
      Parameters:
      sizeInMB - the number of MB to write/read
      Returns:
      a CSV line like MB,write nanos,read nanos
    • main

      public static void main(String[] args)