如何查看单声道 MLPD 文件以进行分析

How to view mono MLPD files for profiling

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

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

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

谢谢!

Has it been depricated?

不,它是 Mono 发行版的一部分,是一个基于 C 的程序,因此它是一个 "native" 二进制文件,与 mono 一起位于 "bin" 目录中, mono64 pedumpmonographmonodis 等..

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