Explain to me how the Method Profiler works in the DDMS, I get heap space error

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-05-23T15:48:16Z Indexed on 2010/05/23 15:50 UTC
Read the original article Hit count: 385

Filed under:
|

I start the Method Profiler for a process, then leave it run for about 5-10 secs, then I stop it. I see a progress that a file is pulled from the sdcard, than I get this Exception

[2010-05-23 18:45:42] Traceview: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

[2010-05-23 18:45:42] Traceview:    at java.util.Arrays.copyOf(Unknown Source)
[2010-05-23 18:45:42] Traceview:    at java.util.Arrays.copyOf(Unknown Source)
[2010-05-23 18:45:42] Traceview:    at java.util.ArrayList.toArray(Unknown Source)
[2010-05-23 18:45:42] Traceview:    at java.util.Collections.sort(Unknown Source)
[2010-05-23 18:45:42] Traceview:    at com.android.traceview.TimeLineView.setData(TimeLineView.java:370)
[2010-05-23 18:45:42] Traceview:    at com.android.traceview.TimeLineView.<init>(TimeLineView.java:316)
[2010-05-23 18:45:42] Traceview:    at com.android.traceview.MainWindow.createContents(MainWindow.java:95)
[2010-05-23 18:45:42] Traceview:    at org.eclipse.jface.window.Window.create(Window.java:431)
[2010-05-23 18:45:42] Traceview:    at org.eclipse.jface.window.Window.open(Window.java:790)
[2010-05-23 18:45:42] Traceview:    at com.android.traceview.MainWindow.run(MainWindow.java:60)
[2010-05-23 18:45:42] Traceview:    at com.android.traceview.MainWindow.main(MainWindow.java:224)

What I am doing wrong?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk