Mono profiler "The 'log' profiler wasn't found in the main executable nor could it be loaded from 'mono-profiler-log'."

StackOverflow https://stackoverflow.com/questions/16999693

  •  31-05-2022
  •  | 
  •  

Pregunta

I have an app on windows which runs on mono pretty fine. However when I try to profile it:

mono --profile=log program.exe

I get:

The 'log' profiler wasn't found in the main executable nor could it be loaded from 'mono-profiler-log'.

and no data file is created (but the app runs fine). Mono 3.0.10

Any ideas?

¿Fue útil?

Solución 2

Try to set your dynamic library path.

This works on OSX: LD_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib mono --profile=log:calls program.exe

In case of OpenSUSE :

You need to use a third party profiler for which you must pass the name of the profiler to Mono, like this:

mono --profile=custom program.exe 

As per above Mono will load the user defined profiler from the shared library ‘mono-profiler-custom.so’.

This profiler module must be on your dynamic linker library path. A list of other third party profilers is available from Mono’s web site (www.mono-project.com/Performance_Tips).

Custom profiles are written as shared libraries. The shared library must be called ‘mono-profiler-NAME.so’ where ‘NAME’ is the name of your profiler

Otros consejos

I found that I got the same message on Ubuntu because I hadn't installed the mono-profiler package via apt-get.

I was having same error message when trying to profile mono app on Linux machine which only had mono runtime installed. Additionally installing mono-dev package fixed it.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top