diff --git a/hiviewdfx/hidumper/BUILD.gn b/hiviewdfx/hidumper/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..a74321cc24da42083dd97ab81dbfc97cf69a4bf0 --- /dev/null +++ b/hiviewdfx/hidumper/BUILD.gn @@ -0,0 +1,14 @@ +import("//build/ohos.gni") + +ohos_ndk_library("hidumper_ndk") { + output_name = "hidumper_ndk" + ndk_description_file = "./libhidumper.ndk.json" + min_compact_version = "1" +} + +ohos_ndk_headers("hidumper_header") { + dest_dir = "$ndk_headers_out_dir/hidumper" + sources =[ + "./include/hidumper/dumper.h" + ] +} \ No newline at end of file diff --git a/hiviewdfx/hidumper/include/hidumper/dumper.h b/hiviewdfx/hidumper/include/hidumper/dumper.h new file mode 100644 index 0000000000000000000000000000000000000000..17a7ea0683cf613219d6de28c146542f9e3aeb4c --- /dev/null +++ b/hiviewdfx/hidumper/include/hidumper/dumper.h @@ -0,0 +1,17 @@ +#ifndef HIDUMPER_H +#define HIDUMPER_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +uint64_t OH_Hidumper_GetPss(const int pid); + +#ifdef __cplusplus +} +#endif + + +#endif \ No newline at end of file diff --git a/hiviewdfx/hidumper/libhidumper.ndk.json b/hiviewdfx/hidumper/libhidumper.ndk.json new file mode 100644 index 0000000000000000000000000000000000000000..ca597240da87f0e200507922ee37f23e07e26e0f --- /dev/null +++ b/hiviewdfx/hidumper/libhidumper.ndk.json @@ -0,0 +1,3 @@ +[ + { "name": "OH_Hidumper_GetPss" } +] \ No newline at end of file