public static byte[] readProfilerConfigFromFile(String rootPath) throws IOException {
  byte[] config=new byte[0];
  File configPath=new File(rootPath,PROFILER.getName() + ".json");
  if (configPath.exists()) {
    config=Files.readAllBytes(configPath.toPath());
  }
  return config;
}

public static byte [ ] readProfilerConfigFromFile ( String rootPath ) throws IOException { byte [ ] config = new byte [ 0 ] ; File configPath = new File ( rootPath , PROFILER . getName ( ) + ".json" ) ; if ( configPath . exists ( ) ) { config = Files . readAllBytes ( configPath . toPath ( ) ) ; } return config ; }
read the profiler configuration from a file . there is only a single profiler configuration .
