OutOfMemoryError dump memory

if (containsOom(ex)) {
      File heapDumpFile = new File(context.getFilesDir(), FILENAME);
      try {
        Debug.dumpHprofData(heapDumpFile.getAbsolutePath());
      } catch (Throwable ignored) {
      }
    }

https://gist.github.com/pyricau/4726389fd64f3b7c6f32

你可能感兴趣的:(OutOfMemoryError dump memory)