Merge "Add an example of how to use multiple options."
am: 910c11767f
Change-Id: Ia7655c6d9639fbd1c06fc3ae631e0a8a04a383bd
diff --git a/libc/malloc_debug/README.md b/libc/malloc_debug/README.md
index 18d22a4..c427d5f 100644
--- a/libc/malloc_debug/README.md
+++ b/libc/malloc_debug/README.md
@@ -610,6 +610,11 @@
adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
+If you need to enable multiple options using this method, then you can set
+them like so:
+
+ adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace\ leak_track\ fill logwrapper"'
+
For example, to enable malloc debug for the google search box (Android O or later):
adb shell setprop wrap.com.google.android.googlequicksearchbox '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'