Debug.startMethodTracing()
by default uses an 8MB "buffer size". I have a number of questions about this buffer.
- Is an error thrown if the buffer fills to capacity, or does it just stop logging?
- Does the buffer remain a fixed 8MB regardless of how much or little data written to it?
- If I manually specify the
bufferSize
parameter, what are the units? Bytes? MB? - I tried growing my buffer size past 20MB or so and the app exits. I need to log about 20 real-time seconds worth of computation. Is there any way to log more data than 20MB or so? I assume it's first stored in memory, otherwise there would be no problem storing it to the SD card.