This is the signature of android.os.Trace#beginAsyncSection
public static void beginAsyncSection (String methodName,
int cookie)
https://developer.android.com/reference/android/os/Trace#beginAsyncSection(java.lang.String,%20int)
I understand that the same name and cookie must be used to end it, but what's the purpose of cookie? What's the use case for calling this or endAsyncSection with the same method name, but a different cookie?