As per Pepijn comment, the only way I found is to start a process from command line, then attach the Profiler to it.