You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
756 B
24 lines
756 B
// Copyright 2019 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
|
|
#define BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
|
|
|
|
#include "base/android/scoped_java_ref.h"
|
|
#include "base/base_export.h"
|
|
#include "base/strings/string_piece.h"
|
|
|
|
namespace base {
|
|
namespace android {
|
|
|
|
// Generates heap dump and writes it to a file at |file_path|. Returns true on
|
|
// success. The heap dump is generated through the Android Java system API
|
|
// android.os.Debug#dumpHprofData(...)
|
|
BASE_EXPORT bool WriteJavaHeapDumpToPath(base::StringPiece file_path);
|
|
|
|
} // namespace android
|
|
} // namespace base
|
|
|
|
#endif // BASE_ANDROID_JAVA_HEAP_DUMP_GENERATOR_H_
|