The profiling of Monobjc application is no different from profiling Mono ones. The Mono Profiler page describes the main options available.

Profiling Console Applications

The profiling is done through these simple steps :

  • Open a Terminal console. The Terminal application is found in /Applications/Utilities folder.
  • Launch the application by its command line. To launch a console application, type the following command:

    LD_LIBRARY_PATH="/Library/Frameworks/Mono.framework/Libraries" MONO_OPTIONS="--profile=log" monobjc MyProgram.exe

For more information, refer to the Mono Profiler reference.

Note: In order for the Monobjc runtime to load the profiler shared libraries, you need to specify the LD_LIBRARY_PATH variable.

Profiling Cocoa Applications

The profiling is done through these simple steps :

  • Open a Terminal console. The Terminal application is found in /Applications/Utilities folder.
  • Launch the application by its command line. To launch a console application, type the following command:

    LD_LIBRARY_PATH="/Library/Frameworks/Mono.framework/Libraries" MONO_OPTIONS="--profile=log" ./MyApplication.app/Contents/MacOS/MyApplication

For more information, refer to the Mono Profiler reference.

Note: In order for the Monobjc runtime to load the profiler shared libraries, you need to specify the LD_LIBRARY_PATH variable.