How to use my own profiler on Unity's standalones?

Hi,

I’m trying to use a .NET profiler (I tried JetBrains dotTrace and ANTS profiler) to profile a standalone made with Unity.

Basically, I build my project as a “PC, Linux & Mac Standalone” application, with “Development build” checked (or not, tried both) so it creates a .exe file… let’s say test.exe.
Then, I launch test.exe from the profiler. The standalone starts normally, but the profiler doesn’t detect it.

So I came to this question: how can I use a profiler such as JetBrains dotTrace to profile my game?

I’ve been searching for an answer to this for quiet a while.
Haven found a way to do so.

Best answer I found was here: http://forum.unity3d.com/threads/how-to-use-my-own-profiler-on-unitys-standalones.284061/.

xperf doesn’t go down to code level unfortunately