You must set your dynamic library path. This works on OSX: LD_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib mono --profile=log:calls hello.exe
On Tue, Mar 19, 2013 at 9:45 AM, Jonathan Shore <jonathan.sh...@gmail.com>wrote: > I just did a new build of mono with llvm of the mono-3.0.7 tar ball. I > get the same problem with mono-sgen: > > $ /opt/mono-3.0/bin/mono-sgen > --profile=log:calls,output=profile.log,maxframes=10,calldepth=100 > EAOutputEvaluator.exe ... > The 'log' profiler wasn't found in the main executable nor could it be > loaded from 'mono-profiler-log'. > > I had built mono with: > > ./autogen.sh --prefix=/opt/mono-3.0 --enable-llvm=yes > > > It would seem that the 3.0.x builds are excluding the profiler ... > > > On Mar 18, 2013, at 4:34 PM, Alan <alan.mcgov...@gmail.com> wrote: > > I believe the GC related profiling options, like allocation tracking > or heap-shot, only work with sgen. The performance related options > work irrespective of the GC being used. > > Alan > > On 18 March 2013 23:17, Andres G. Aragoneses <kno...@gmail.com> wrote: > > On 18/03/13 22:57, Esben Laursen wrote: > > > Den 18-03-2013 20:59, Jonathan Shore skrev: > > > Hi, > > I've used mono --profileā¦ in the past with 2.10.x and did not have > problems in being able to run. I was trying to run profiling on an > app again, this time with 3.0.x. On both osx and linux, I get: > > The 'log' profiler wasn't found in the main executable nor could it be > loaded from 'mono-profiler-log'. > > I am using a standard build of mono 3.0.x on OSX and then my own build > on linux. In the linux build configuration I saw that there is an > option to remove profiling from the build, but seemed that profiling > should be there by default. > > Has profiling been removed as a default in the build? And is there a > switch I can use to add this in? > > > I have used it with a default build (on Linux though), but afaik is only > availble with sgen, did you try with mono-sgen or "mono --gc=sgen" > > See http://www.mono-project.com/Profiler > > > > I've used it with the Boehm collector successfully. > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > >
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list