profiling: Add malloc hooks.
Change-Id: Iea9ab138810a2c38b092e3c4823e1b8a56fdf25f
diff --git a/BUILD.gn b/BUILD.gn
index 15f2bd9..576f101 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -274,3 +274,25 @@
]
}
}
+
+if (!build_with_chromium) {
+ # TODO(fmayer): Investigate shared library for common pieces.
+ shared_library("heapprofd_client") {
+ deps = [
+ "src/profiling/memory:malloc_hooks",
+ ]
+ }
+
+ executable("heapprofd") {
+ deps = [
+ "gn:default_deps",
+ "src/base",
+ "src/base:unix_socket",
+ "src/profiling/memory:daemon",
+ "src/profiling/memory:wire_protocol",
+ ]
+ sources = [
+ "src/profiling/memory/main.cc",
+ ]
+ }
+}