我的测试设备版本是5.0.1 (棒棒糖)。
我在Android Studio 1.3中得到了Android堆转储文件。
但我看到了错误消息。

因此,我尝试在DDMS中获取转储文件(示例文件名: android.hprof)。
然后我尝试将Android HPROF转换为标准的HPROF文件。
hprof-conv android.hprof standard.hprof则返回为ERROR: read 40070 of 65559 bytes的hprof-conv消息
谁来帮帮我。
发布于 2019-03-25 16:43:34
/*
* Read some data, adding it to the expanding buffer.
*
* This will ensure that the buffer has enough space to hold the new data
* (plus the previous contents).
*/
static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected)
{
size_t actual;
assert(count > 0);
ebEnsureCapacity(pBuf, count);
actual = fread(pBuf->storage + pBuf->curLen, 1, count, in);
if (actual != count) {
if (eofExpected && feof(in) && !ferror(in)) {
/* return without reporting an error */
} else {
fprintf(stderr, "ERROR: read %d of %d bytes\n", actual, count);
return -1;
}
}
pBuf->curLen += count;
assert(pBuf->curLen <= pBuf->maxLen);
return 0;
}https://stackoverflow.com/questions/32409289
复制相似问题