Fix emulator build error
[platform/framework/web/chromium-efl.git] / base / android / java_heap_dump_generator.h
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.
4
5 #ifndef BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
6 #define BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/base_export.h"
10 #include "base/strings/string_piece.h"
11
12 namespace base {
13 namespace android {
14
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);
19
20 }  // namespace android
21 }  // namespace base
22
23 #endif  // BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_