本文介绍了如何转换堆转储在Android中,以Eclipse格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林试图分析内存泄漏已经快把我逼疯了几个星期,我发现了关于日食 MAT 工具,可以帮助你找出什么是错的,问题是每一个教程中,我发现说,我需要从Dalvik的文件的格式转换为 HPROF 格式,但没有一个教程中,我能找到解释如何真正做到这一点,而我得到含糊这样的事情

Im attempting to analyze a memory leak that has been driving me crazy for weeks, I found out about the eclipse MAT tool that helps you to figure out what is wrong, the problem is every single tutorial I have found says that I need to convert the format of the file from dalvik to HPROF format, however not one single tutorial I can find explains how to actually do it, instead I get vague things like this

现在你会得到不符合标准孙.hprof格式,但写在的Dalvik自己的格式,你需要转换的文件:

HPROF-CONV堆转储-TM-pid.hprof 4mat.hprof

这是什么实际上意味着?我该怎么点击?我在哪里去了?林完全失去了和沮丧,任何帮助将很长的路要走,谢谢。

what does that actually mean? what do I click? where do I go? Im totally lost and frustrated, any help will go a long way, thanks.

推荐答案

听起来像是你需要使用的工具多数民众赞成位于 [Android的SDK] \平台工具

Sounds like you need to use the hprof-conv tool that's located in [Android-SDK]\platform-tools.

要在Windows上做到这一点:

To do this on Windows:

  1. preSS WINKEY + 研究,并键入 CMD
  2. 键入

  1. Press + and type in cmd
  2. Type in:

CDC:\ Android的SDK \平台工具(或任何目录包含在Android SDK)

cd "C:\android-sdk\platform-tools" (or whichever directory contains your Android sdk)

假设你在桌面上你的Dalvik的文件(我只是猜测的目录),键入:

Assuming you have your Dalvik file on the Desktop (I'm just guessing the directory), type in:

HPROF-CONVC:\ Users \用户埃德蒙\桌面\堆转储-TM-pid.hprofC:\ Users \用户埃德蒙\桌面\ 4mat.hprof

这篇关于如何转换堆转储在Android中,以Eclipse格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 22:21