profiling: Add malloc hooks.
Change-Id: Iea9ab138810a2c38b092e3c4823e1b8a56fdf25f
diff --git a/Android.bp b/Android.bp
index 8e6341e..e7cd8f0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,78 @@
//
// This file is automatically generated by tools/gen_android_bp. Do not edit.
+// GN target: //:heapprofd
+cc_binary {
+ name: "heapprofd",
+ srcs: [
+ "src/base/event.cc",
+ "src/base/file_utils.cc",
+ "src/base/metatrace.cc",
+ "src/base/page_allocator.cc",
+ "src/base/string_splitter.cc",
+ "src/base/string_utils.cc",
+ "src/base/temp_file.cc",
+ "src/base/thread_checker.cc",
+ "src/base/time.cc",
+ "src/base/unix_socket.cc",
+ "src/base/unix_task_runner.cc",
+ "src/base/virtual_destructors.cc",
+ "src/base/watchdog_posix.cc",
+ "src/profiling/memory/bookkeeping.cc",
+ "src/profiling/memory/main.cc",
+ "src/profiling/memory/record_reader.cc",
+ "src/profiling/memory/socket_listener.cc",
+ "src/profiling/memory/string_interner.cc",
+ "src/profiling/memory/unwinding.cc",
+ "src/profiling/memory/wire_protocol.cc",
+ ],
+ shared_libs: [
+ "libbase",
+ "liblog",
+ "libprocinfo",
+ "libunwindstack",
+ ],
+ defaults: [
+ "perfetto_defaults",
+ ],
+}
+
+// GN target: //:heapprofd_client
+cc_library_shared {
+ name: "heapprofd_client",
+ srcs: [
+ "src/base/event.cc",
+ "src/base/file_utils.cc",
+ "src/base/metatrace.cc",
+ "src/base/page_allocator.cc",
+ "src/base/string_splitter.cc",
+ "src/base/string_utils.cc",
+ "src/base/temp_file.cc",
+ "src/base/thread_checker.cc",
+ "src/base/time.cc",
+ "src/base/unix_socket.cc",
+ "src/base/unix_task_runner.cc",
+ "src/base/virtual_destructors.cc",
+ "src/base/watchdog_posix.cc",
+ "src/profiling/memory/client.cc",
+ "src/profiling/memory/malloc_hooks.cc",
+ "src/profiling/memory/sampler.cc",
+ "src/profiling/memory/wire_protocol.cc",
+ ],
+ shared_libs: [
+ "libbase",
+ "liblog",
+ "libprocinfo",
+ "libunwindstack",
+ ],
+ defaults: [
+ "perfetto_defaults",
+ ],
+ include_dirs: [
+ "bionic/libc",
+ ],
+}
+
// GN target: //:libperfetto
cc_library_shared {
name: "libperfetto",