memory-leaks - 如何查看单声道 MLPD 文件以进行分析
问题描述
我使用这些说明构建了 MonoDevelop 。我用它编译了一个控制台应用程序,它在 Linux 机器上运行。我注意到内存泄漏并想跟踪它并找出泄漏的内容。
根据这些说明,我必须以单声道的特定选项启动应用程序。此时,分析器将转储一个 MLPD 文件。我现在有了那个文件,想查看它,看看发生了什么。我在任何地方都找不到这个mprof-report
程序。
它被贬低了吗?如果是这样,我们现在如何分析单声道应用程序?网上没有太多介绍。
谢谢!
解决方案
它被贬低了吗?
mono
不,它是 Mono 发行版的一部分,并且是基于 C 的程序,因此它是“本机”二进制文件,与, mono64
pedump
, monograph
,monodis
等一起位于“bin”目录中。
在 MacOS 上,这些位于:
file `which mprof-report`
/Library/Frameworks/Mono.framework/Versions/Current/Commands/mprof-report: Mach-O 64-bit executable x86_64
手册页:
NAME
mprof-report - report generator for Mono's log profiler
SYNOPSIS
mprof-report [option]... file.mlpd
DESCRIPTION
mprof-report is the report generator for Mono's log profiler. It reads the MLPD log
files produced by the log profiler and generates a report based on the options passed
to it. The output is based on individual reports which can be turned on or off. By
default, all reports are generated in summary form (i.e., non-verbose output).
mprof-report can read both normal and gzip(1)-compressed log files transparently.
For information about how to use the log profiler with a program, see the mono-pro-
filers(1) page, under the LOG PROFILER section.
~~~~~
推荐阅读
- python - 图像识别中的预处理
- mvvm - 数据未在 Icommand 按钮单击时进入视图模型
- python - 删除 pd.DataFrame 中的最后一个单词
- c - fscanf 不保存行 - C
- c# - C# MVC Core 使用 Process() 打印 Excel 文件,PDF 工作正常,但 Excel 继续加载
- javascript - 流程:无法获取 this.props.width,因为 T 中缺少属性宽度
- python-2.7 - ERAlchemy 无法连接到数据库
- android - 如果我的 Android 应用程序需要 NFC 权限但实际上没有使用它怎么办?
- python - Python 在使用 zip() 迭代列表时不会修改值,但在使用 enumerate() 时会这样做
- java - 使用 Vert.x 处理请求中间件中抛出的错误