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