Imported Upstream version 4.2.0.179

Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent aa7da660d6
commit c042cd0c52
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -2,10 +2,15 @@
/*
* Bare bones profiler. Compile with:
* gcc -shared -o mono-profiler-sample.so sample.c `pkg-config --cflags --libs mono`
* Install the binary where the dynamic loader can find it.
*
* linux : gcc -shared -o mono-profiler-sample.so sample.c `pkg-config --cflags --libs mono`
* mac : gcc sample.c -o mono-profiler-sample.dylib -Dmono_free=free -lz `pkg-config --cflags mono-2` -undefined suppress -flat_namespace
*
* Install the binary where the dynamic loader can find it. eg /usr/lib etc
* Then run mono with:
* mono --profile=sample your_application.exe
*
* Note if you name a profiler with more than 8 characters (eg sample6789) appears to not work
*/
struct _MonoProfiler {