Debug.startMethodTracing()
by default uses an 8MB "buffer size". I have a number of questions about this buffer.
bufferSize
parameter, what are the units? Bytes? MB?I ran some tests and found:
If the buffer fills to capacity, the following "info" level LogCat message is displayed: TRACE STOPPED (NOTE: overflowed buffer): writing X records
The buffer is between 0 and 8MB depending upon how much data is written.
The bufferSize
parameter is specified in bytes.
To increase the amount of emulated device ram, open the AVD manager and edit your virtual device. Click on the new hardware button and select Device ram size. On my machine the largest I could enter was 1GB (value 1000).