diff options
author | Alex Rønne Petersen <alex@alexrp.com> | 2015-04-09 13:09:53 +0300 |
---|---|---|
committer | Alex Rønne Petersen <alex@alexrp.com> | 2015-04-09 13:09:53 +0300 |
commit | 811674bc6331c98d33134e2a37a7c7dd66402227 (patch) | |
tree | 097e6cfb7026544945b2e11d2e70fadca6f8ee00 /samples | |
parent | 9965afbe2fdee75c5e17153dfd54e30fdc8ae1c8 (diff) | |
parent | 5a228a65a0f6fc2c0f6551f2379b04f2636cf6ad (diff) |
Merge pull request #1695 from gregoryyoung/master
add compilation instructions
Diffstat (limited to 'samples')
-rw-r--r-- | samples/profiler/sample.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/samples/profiler/sample.c b/samples/profiler/sample.c index 49af781a55a..45c46da07d9 100644 --- a/samples/profiler/sample.c +++ b/samples/profiler/sample.c @@ -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 { |