java_heap_dump_generator.h 778 B

1234567891011121314151617181920212223
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
  5. #define BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
  6. #include "base/android/scoped_java_ref.h"
  7. #include "base/base_export.h"
  8. #include "base/strings/string_piece.h"
  9. namespace base {
  10. namespace android {
  11. // Generates heap dump and writes it to a file at |file_path|. Returns true on
  12. // success. The heap dump is generated through the Android Java system API
  13. // android.os.Debug#dumpHprofData(...)
  14. BASE_EXPORT bool WriteJavaHeapDumpToPath(base::StringPiece file_path);
  15. } // namespace android
  16. } // namespace base
  17. #endif // BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_