You can also use the new "adb shell am profile ..." commands to start and stop profiling in a process.
On Mon, Nov 23, 2009 at 6:40 AM, davemac <[email protected]> wrote: > Yes. You need to add a uses-permission to your AndroidManifest.xml > file for android.permission.WRITE_EXTERNAL_STORAGE. > > - dave > > On Nov 20, 9:39 pm, JHandal <[email protected]> wrote: > > HI > > > > I'm running the basic HelloActivity from the SDK 2. samples. > > > > When I try Trace view in the DDMS prespective its generate the trace > > file but can not opened. > > > > "'/sdcard/com.google.android.apps.uploader.trace': Permission denied" > > > > Do I need a permission to write in the SD card????? > > > > 4:38.380: INFO/dalvikvm(10434): Debugger has detached; object registry > > had 1 entries > > 11-20 21:34:38.380: DEBUG/dalvikvm(10434): VM cleaning up > > 11-20 21:34:38.411: ERROR/AndroidRuntime(10434): ERROR: thread attach > > failed > > 11-20 21:34:38.466: DEBUG/VoiceDialerReceiver(1225): onReceive Intent > > { act=android.intent.action.PACKAGE_ADDED > > dat=package:com.example.android.helloactivity flg=0x20000000 > > cmp=com.android.voicedialer/.VoiceDialerReceiver (has extras) } > > 11-20 21:34:38.466: DEBUG/dalvikvm(10434): LinearAlloc 0x0 used 636716 > > of 5242880 (12%) > > 11-20 21:34:38.490: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f080000 > > 11-20 21:34:38.490: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020040 > > 11-20 21:34:38.490: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020041 > > 11-20 21:34:38.497: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f050000 > > 11-20 21:34:38.521: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020005 > > 11-20 21:34:38.529: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020004 > > 11-20 21:34:38.529: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f0700e4 > > 11-20 21:34:38.529: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020031 > > 11-20 21:34:38.529: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f020030 > > 11-20 21:34:38.529: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f050000 > > 11-20 21:34:38.552: INFO/ActivityManager(1015): Start proc > > com.example.android.helloactivity for activity > > com.example.android.helloactivity/.HelloActivity: pid=10441 uid=10045 > > gids={1015} > > 11-20 21:34:38.599: INFO/dalvikvm(10441): Debugger thread not active, > > ignoring DDM send (t=0x41504e4d l=38) > > 11-20 21:34:38.622: INFO/dalvikvm(10441): Debugger thread not active, > > ignoring DDM send (t=0x41504e4d l=70) > > 11-20 21:34:38.708: WARN/ResourceType(1015): Resources don't contain > > package for resource number 0x7f060001 > > 11-20 21:34:44.208: DEBUG/dalvikvm(2166): GC freed 1260 objects / > > 80072 bytes in 83ms > > 11-20 21:34:49.318: DEBUG/dalvikvm(1517): GC freed 256 objects / 14624 > > bytes in 75ms > > 11-20 21:34:50.986: DEBUG/dalvikvm(1181): +++ active profiler count > > now 1 > > 11-20 21:34:50.990: INFO/dalvikvm(1181): TRACE STARTED: '/sdcard/ > > com.google.android.apps.uploader.trace' 8192KB > > 11-20 21:34:50.990: ERROR/dalvikvm(1181): Unable to open trace file '/ > > sdcard/com.google.android.apps.uploader.trace': Permission denied > > 11-20 21:34:50.990: DEBUG/dalvikvm(1181): +++ active profiler count > > now 0 > > 11-20 21:34:54.435: DEBUG/dalvikvm(1225): GC freed 159 objects / 10488 > > bytes in 68ms > > 11-20 21:34:59.560: D > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

