ANR: Improve parameter removal

Support removing multiple parameters since functions can
be defined inside function (lambdas are very common case).

Bug: 189881220
Test: manual ANR
Change-Id: I9c4ad139bcee09811cb7356ee48199b16483d971
diff --git a/runtime/native_stack_dump.h b/runtime/native_stack_dump.h
index 99fb59c..86a8ce2 100644
--- a/runtime/native_stack_dump.h
+++ b/runtime/native_stack_dump.h
@@ -31,6 +31,10 @@
 
 class ArtMethod;
 
+// Remove method parameters by finding matching top-level parenthesis and removing them.
+// Since functions can be defined inside functions, this can remove multiple substrings.
+std::string StripParameters(std::string name);
+
 // Dumps the native stack for thread 'tid' to 'os'.
 void DumpNativeStack(std::ostream& os,
                      pid_t tid,