首页 > 解决方案 > 如何查看单声道 MLPD 文件以进行分析

问题描述

我使用这些说明构建了 MonoDevelop 。我用它编译了一个控制台应用程序,它在 Linux 机器上运行。我注意到内存泄漏并想跟踪它并找出泄漏的内容。

根据这些说明,我必须以单声道的特定选项启动应用程序。此时,分析器将转储一个 MLPD 文件。我现在有了那个文件,想查看它,看看发生了什么。我在任何地方都找不到这个mprof-report程序。

它被贬低了吗?如果是这样,我们现在如何分析单声道应用程序?网上没有太多介绍。

谢谢!

标签: memory-leaksmonomonodevelop

解决方案


它被贬低了吗?

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.
        ~~~~~

推荐阅读