Re: [Pharo-dev] Arguments to --trace=?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Arguments to --trace=?

Eliot Miranda-2
 



On Sun, Jan 12, 2014 at 11:43 AM, Martin McClure <[hidden email]> wrote:
Anybody know where to find what the acceptable arguments to --trace on the command line are, and what each means?

So far, I've tried:

--trace                 Lots of output
--trace=0               No output
--trace=1               Looks maybe the same as --trace with no argument
--trace=2               No output
--trace=3               A whaling big lot of very interesting output

Slightly better descriptions of these would be nice. :-)

Cogit>>sendTrace: aBooleanOrInteger
<doNotGenerate>
"traceFlags is a set of flags.
1 => print trace (if something below is selected)
2 => trace sends
4 => trace block activations
8 => trace interpreter primitives
16 => trace events (context switches, GCs, etc)
32 => trace stack overflow
64 => send breakpoint on implicit receiver (Newspeak VM only)"
traceFlags := aBooleanOrInteger isInteger
ifTrue: [aBooleanOrInteger]
ifFalse: [aBooleanOrInteger ifTrue: [6] ifFalse: [0]]
--
best,
Eliot
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Arguments to --trace=?

Martin McClure-2
 
On 01/12/2014 03:26 PM, Eliot Miranda wrote:

>
>
>
> On Sun, Jan 12, 2014 at 11:43 AM, Martin McClure <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Anybody know where to find what the acceptable arguments to --trace
>     on the command line are, and what each means?
>
>     So far, I've tried:
>
>     --trace                 Lots of output
>     --trace=0               No output
>     --trace=1               Looks maybe the same as --trace with no argument
>     --trace=2               No output
>     --trace=3               A whaling big lot of very interesting output
>
>     Slightly better descriptions of these would be nice. :-)
>
>
> Cogit>>sendTrace: aBooleanOrInteger
> <doNotGenerate>
> "traceFlags is a set of flags.
> 1 => print trace (if something below is selected)
> 2 => trace sends
> 4 => trace block activations
> 8 => trace interpreter primitives
> 16 => trace events (context switches, GCs, etc)
> 32 => trace stack overflow
> 64 => send breakpoint on implicit receiver (Newspeak VM only)"
> traceFlags := aBooleanOrInteger isInteger
> ifTrue: [aBooleanOrInteger]
> ifFalse: [aBooleanOrInteger ifTrue: [6] ifFalse: [0]]
> --

Thanks Eliot, that helps a lot!

Regards,

-Martin