EXAMPLE: libbinderdebug: generic metric collector

Example binary to collect binder threadpool
usage plus client count for metric dashboards.

Note: dumpsys is already doing similar things as this.
If we have the generic format, we would probably
re-write /system/bin/dumpsys to support that format
rather than needing to use this other binary.

Bug: N/A
Test: N/A
Change-Id: I9f300f05e9475b6d39e8071e5843eccfb3584bc4
diff --git a/libs/binderdebug/Android.bp b/libs/binderdebug/Android.bp
index 3eeaf3e..1454727 100644
--- a/libs/binderdebug/Android.bp
+++ b/libs/binderdebug/Android.bp
@@ -21,6 +21,17 @@
     default_applicable_licenses: ["frameworks_native_license"],
 }
 
+cc_benchmark {
+    name: "binder_thread_stats",
+    shared_libs: [
+        "libutils",
+        "libbinder",
+        "libbase",
+    ],
+    static_libs: ["libbinderdebug"],
+    srcs: ["stats.cpp"],
+}
+
 cc_library {
     name: "libbinderdebug",
     vendor_available: true,