ddms

how can i see how much memory my app is using out of its VM budget?

北战南征 提交于 2019-12-04 02:39:34
I've looked in DDMS but didn't see anything. Thanks. You should have clicked "Update Heap" button in DDMS in Devices view. You see only about 3Mb (which is great btw) because the VM allocates just as much as it needs. If you start loading images in your app you'll see it grow. When it reaches 16 (for 320x480 devices) or 24 (for larger devices) Mb, you'll get an OutOfMemory error Someone Somewhere sergiu posted some code here: How do I detect the heap size usage of an android application 来源: https://stackoverflow.com/questions/4516645/how-can-i-see-how-much-memory-my-app-is-using-out-of-its-vm

DDMS files not found: xxx\\hprof-conv.exe

南笙酒味 提交于 2019-12-03 15:29:16
出现如下错误: DDMS files not found: xxx\hprof-conv.exe The connection to adb is down, and a severe error has occured Please ensure that adb is correctly located at 'D:\tools\android-sdk\platform-tools\adb.exe' and can be executed. 解决办法: 将android-sdk\tools目录下的 hprof-conv.exe 拷贝到sandroid-sdk\platform-tools目录下,重启eclipse即可 来源: https://www.cnblogs.com/zhangxuechao/p/11802344.html

LogCat not displaying TAG “SMS”

不羁岁月 提交于 2019-12-03 12:55:09
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Log.e("SMS","Hello World"); //not showing Log.v("SMS","Hello World"); //not showing Log.i("SMS","Hello World"); //not showing Log.d("SMS","Hello World"); //not showing Log.i("sms","Hello World"); //showing } Why the Logging in the Logcat is not working for some line in the above code?? Turnsole There are some tags that don't go to the default buffer, as has been stated. You can view them by specifying which buffer to view with the "-b" logcat option. Check section

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

心已入冬 提交于 2019-12-03 12:24:03
问题 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. 回答1: 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. 回答2: "traceview" is a command-line utility. You

Android Studio中怎么使用DDMS工具

北城以北 提交于 2019-12-03 11:41:58
随着 android studio 的广泛使用,开发人员对相关工具的使用需求更加凸显。昨天在一个android studio教程网站上,看到一篇有关DDMS工具使用的相关知识,感觉很不错,分享给大家,一起来看看吧,新技能get走起~~ 首先,我们需要了解的是DDMS工具是个什么鬼? 其实,DDMS(Dalvik Debug Monitor Service),是 Android 开发环境中的Dalvik虚拟机调试监控服务。可以进行的操作有:为测试设备截屏,查看特定行程中正在运行的线程以及堆信息、Logcat、广播状态信息、模拟电话呼叫、接收SMS、虚拟地理坐标等,功能非常强大,对于安卓开发者来说是一个非常好的工具,下面来看看其具体用法吧。 Android Studio开发工具中,打开DDMS,具体的方式如图: 打开之后的窗口如图: 除了图上大概标注的功能外,详细的功能有: 1.Devices:查看到所有与DDMS连接的模拟器详细信息,以及每个模拟器正在运行的APP进程,每个进程最右边相对应的是与调试器链接的端口。 2.Emulator Control:实现对模拟器的控制,如:接听电话,根据选项模拟各种不同网络情况,模拟短信发送及虚拟地址坐标用于测试GPS功能等。 3.LogCat :查看日志输入信息,可以对日志输入进行Filter过滤一些调试的信息筛选查看等。 4.File

Android DDMS v22.0.1 unable to generate a systrace using Droid Razor 4.1.2

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've selected several of the trace tags and when I run the trace (from DDMS ) I get the following output: Unexpected error while collecting system trace. Unable to find trace start marker 'TRACE:': error opening /sys/kernel/debug/tracing/options/overwrite: No such file or directory (2) error openi (cuts off the error here) indeed there is no debug file in the kernel directory, but which mechanism will generate the necessary path? 回答1: It looks like your cellphone is running a boot(kernel) image that does not support systrace. "error opening

Android Studio + DDMS error “Failed to push selection: Read-only file system”

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently was forced into using Android Studio. Before that I have worked with eclipse and never had issues with DDMS of any sort. Now I am attempting to push a file or create a folder on the emulator device and I keep getting this error: Failed to push selection: Read-only file system I messed around with some of the file read only permisions and I managed to generate this message for a little bit. Failed to push selection: Permission denied My operating system is windows. EDIT: I tried to create an external SDCard image, and the error I

Memory Leaks in Android application

风流意气都作罢 提交于 2019-12-03 04:55:50
问题 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

DDMS报错:Failed to initialize Monitor Thread: ......

佐手、 提交于 2019-12-03 03:44:07
晚上做了个Demo准备用手机调试一下看看效果,结果运行Android程序时,DDMS却给出了这样的错误:    Failed to initialize Monitor Thread: Unable to establish loopback connection   此时控制台也不停的输出:    [2014-02-04 21:54:14 - DeviceMonitor] Connection attempts: 1   [2014-02-04 21:54:15 - DeviceMonitor] Connection attempts: 2   [2014-02-04 21:54:16 - DeviceMonitor] Connection attempts: 3   [2014-02-04 21:54:18 - DeviceMonitor] Connection attempts: 4   [2014-02-04 21:54:19 - DeviceMonitor] Connection attempts: 5   。。。。   我纳闷,昨天还可以正常使用的开发工具,今天突然抽风了。。。   于是我先Baidu,没效果,后Bing,才搜到几条。其主要处理方法为:   1,在命令行下输入:netstat -ano | findstr "5037" 看端口是否被占用,如果有结果

DDMS Not Showing Threads From Device

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'd like to check for memory leaks in my Android app using the DDMS feature in Eclipse . When I launch an emulated device, the threads display properly for the emulated device, starting with 8600 and up. However, when I connect my Droid to the PC, the device shows up just fine in DDMS. The logcat is generated correctly, and I can view the file structure. However, threads do not display. I get "no client selected" in the Threads pane, and there is no drop-down icon next to the device listing. Do I need to change some particular setting in