[Mono-dev] Re: Profiling output
robertj at gmx.net
Fri Mar 24 02:48:59 EST 2006
Jacob Ilsø Christensen wrote:
> On 3/23/06, Robert Jordan <robertj at gmx.net> wrote:
>> Jacob Ilsø Christensen wrote:
>>> I have been experimenting a bit with monos profiling option. I run
>>> mono like this:
>>> mono --profile=default:time A.exe
>>> This results in the profiling information being printed to stdout. Is
>>> there a way to redirect this information to e.g. a file to prevent it
>>> from being mixed with the output from the program (A.exe) itself?
>> It depends on your shell. With sh/bash you can redirect both
>> output streams to different files:
>> mono --profile=default:time A.exe 2> errors 1> output
> That's not exactly what I meant. What I want is a way to prevent the
> output from the profiler from being mingled with the output from the
> application being profiled.
> Any ideas?
So your own output goes to stderr as well. Either change the code
to output on stdout (Console.WriteLine instead of
Console.Error.WriteLine) or use a trace listener for your own output,
or fill a feature request with bugzilla at
More information about the Mono-devel-list