ddms

Android memory leak on textview - LeakCanary (Leak can be ignored)

余生长醉 提交于 2019-12-03 02:59:53
I keep having the following memory leak as displayed by LeakCanary, when I go from my splash screen to the mainactivity. I understand that this is an expected leak due to fault in the Android OS itself, but is there a way I can avoid this (by setting specifics of some TextView somewhere?) D/LeakCanary﹕ * LEAK CAN BE IGNORED. D/LeakCanary﹕ * com.gmspartnersltd.earthmiles.views.ActivitySignUp_ has leaked: D/LeakCanary﹕ * GC ROOT static android.text.TextLine.sCached D/LeakCanary﹕ * references array android.text.TextLine[].[1] D/LeakCanary﹕ * references android.text.TextLine.mCharacterStyleSpanSet

How can i open .trace file format(traceview) without DDMS?

荒凉一梦 提交于 2019-12-03 02:51:19
I want to save a log of method calls. Traceview supports that function and I can get .trace file format. but, I need to open .trace file format without DDMS. If I can't open .trace file without DDMS, How can I get a log of method calls? (The best is .txt file format.) thanks. ravenzhang It is an old thread. because I found here, so other guys may need this, too. Try this: traceview -r yourtrace.trace > 1.txt and look 1.txt has any useful thing to u. "traceview" is a command-line utility. You don't need to launch it from DDMS. If you just want a text file with times and message names, you can

How to automate the DDMS snapshot mechanism?

匿名 (未验证) 提交于 2019-12-03 02:15:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does Android DDMS provide APIs ? I need to automate the snapshot mechanism for the native heap. Or is there any post processing tool for analysis DDMS native heap snapshots. 回答1: I assume by snapshot you mean a heap dump. From your app code you can call Debug.dumpHprofData() to dump the data. From a script you can call adb shell am dumpheap <process> <file> where <process> is e.g. your process id or name, and <file> is the dump file name. After that you can adb pull the dump to your computer. To analyze the heap dumps you can use e.g. jhat

ddms: &#039;adb.exe,start-server&#039; failed ― run manually if necessary, Android Studio

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My adb is down, no matter I am using ADT or Android Studio. And according to the second answer of this SO question , I did: I type: adb nodaemon server Output: cannot bind 'tcp:5037' Then netstat -ano | findstr 5037 I did find a pid of 7416 who listen in 127.0.0.1:5037 I use taskkill /pid 7416 -f to kill it. I type netstat -ano | findstr 5037 again, I found another pid listens at 127.0.0.1:5037 again! I guess they are the same, but I have no idea who it is. Can I simply have a easy way to release this port or change the adb port to another

Could not open Selected VM debug port (8700)

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to debug the android source using Eclipse by following the instructions found at: http://source.android.com/using-eclipse I have downloaded the source, and gotten it to build. I follow the directions in the link above and everything is fine until I run the ddms command. At this point, if Eclipse is running I get the error 'Could not open Selected VM debug port (8700)'. If I close Eclipse, then ddms runs with no problem, and I can the the processes on the emulator. However, if I now open Eclipse, I get the same error. In

Eclipse Hangs in DDMS post-create init

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: From last two days, eclipse started showing wired behaviour. Its goes in infinte process of DDMS post-create init, And if i try to run the application then Eclipse got hanged. I have tried to install from scratch with eclipse 6.2 and eclipse 7.0, but No luck. Is anybody else facing this problem, and got any solution then please share with me. 回答1: I had this problem, it was due to the presence of the file .lock in the .metadata folder of my workspace. I don't know if this is your problem, but closing eclipse and deleting the

ddms: 'adb.exe,start-server' failed ― run manually if necessary, Android Studio

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: My adb is down, no matter I am using ADT or Android Studio. And according to the second answer of this SO question , I did: I type: adb nodaemon server Output: cannot bind 'tcp:5037' Then netstat -ano | findstr 5037 I did find a pid of 7416 who listen in 127.0.0.1:5037 I use taskkill /pid 7416 -f to kill it. I type netstat -ano | findstr 5037 again, I found another pid listens at 127.0.0.1:5037 again! I guess they are the same, but I have no idea who it is. Can I simply have a easy way to release this port or change the adb port to

DDMS files not found: SDK_HOME/tools/traceview : Eclipse

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm newly configured Android Eclipse neon in Ubuntu. When I try to open the eclipse it throws error As " Failed to get the required ADT version number from the SDK. The Android Development Toolkit may not work properly " I have tried many references but i am unable to solve the issue as given in references to reinstall ADT plugin.Which i have tried many times and does not solve the issue. The Message shown in dialog box 回答1: Finally i got an answer. You first restart your eclipse and check it. If again throws same error please try this steps

Memory Leaks in Android application

纵饮孤独 提交于 2019-12-02 18:10:23
I'm experience some memory leaks in my application. The first time I suspected the memory leak was when I stress-tested my application by hitting a button to start a new Activity . After using DDMS and dumping out a .hprof file , this file I opened with the Eclipse Memory Analyzer I got three possible Memory Leaks, shown in a Pie chart: And a description to the Memory Leaks: Suspect 1 122 instances of "android.widget.LinearLayout", loaded by "" occupy 29 585 384 (38,74%) bytes. Biggest instances: •android.widget.LinearLayout @ 0x4258c008 - 2 268 848 (2,97%) bytes. •android.widget.LinearLayout

How to use Monitor (DDMS) tool to debug application

不羁岁月 提交于 2019-12-02 17:51:07
I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can only do step by step debug by not open this Monitor. Since when I try to use Monitor while the debugger is