You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Jean-frederic Clere <jf...@gmail.com> on 2006/10/11 23:58:18 UTC

[drlvm] -verbose option does nothing

Hi,

I have noted the than java -verbose does not print any information, is 
that normal?

Cheers

Jean-Frederic

PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp: 
set_threshold(util::CLASS_LOGGER, INFO);

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Tim Ellison <t....@gmail.com>.
Jean-frederic Clere wrote:
> Tim Ellison wrote:
>> we should accept -verbose, and most likely print
>> out class loading info by default (i.e. without any ':' directive); but
>> I don't think that we need to output in exactly the same format.
>>  
>>
> I think that -verbose should be like -verbose:class

Agreed.

Regards,
Tim
-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Jean-frederic Clere <jf...@gmail.com>.
Tim Ellison wrote:

>Mikhail Fursov wrote:
>  
>
>>Do you expect an output like RI does:
>>[Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
>>[Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
>>[Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>[Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>[Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>...
>>
>>Should we be compatible with it by default?
>>    
>>
>
>To a certain extent.  we should accept -verbose, and most likely print
>out class loading info by default (i.e. without any ':' directive); but
>I don't think that we need to output in exactly the same format.
>  
>
I think that -verbose should be like -verbose:class

Cheers

Jean-Frederic

>  
>
>>I know that there are several -verbose sub-options, like -verbose:em
>>+ we have -Xtrace option for more detailed info. Try -Xtrace,
>>-Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.
>>    
>>
>
>Ack, so some -verbose:* options may be synonyms.
>
>Regards,
>Tim
>
>  
>
>>On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>>    
>>
>>>Hi,
>>>
>>>I have noted the than java -verbose does not print any information, is
>>>that normal?
>>>
>>>Cheers
>>>
>>>Jean-Frederic
>>>
>>>PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
>>>set_threshold(util::CLASS_LOGGER, INFO);
>>>
>>>---------------------------------------------------------------------
>>>Terms of use : http://incubator.apache.org/harmony/mailing.html
>>>To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>>For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>>
>>>
>>>      
>>>
>>    
>>
>
>  
>


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Mikhail Fursov <mi...@gmail.com>.
On 10/13/06, Tim Ellison <t....@gmail.com> wrote:
>
> Ack, so some -verbose:* options may be synonyms.
>

Yes, AFAIK the -Xtrace is just more detailed -verbose version and available
with debug build only

-- 
Mikhail Fursov

Re: [drlvm] -verbose option does nothing

Posted by Tim Ellison <t....@gmail.com>.
Mikhail Fursov wrote:
> Do you expect an output like RI does:
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> ...
> 
> Should we be compatible with it by default?

To a certain extent.  we should accept -verbose, and most likely print
out class loading info by default (i.e. without any ':' directive); but
I don't think that we need to output in exactly the same format.

> I know that there are several -verbose sub-options, like -verbose:em
> + we have -Xtrace option for more detailed info. Try -Xtrace,
> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.

Ack, so some -verbose:* options may be synonyms.

Regards,
Tim

> On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>>
>> Hi,
>>
>> I have noted the than java -verbose does not print any information, is
>> that normal?
>>
>> Cheers
>>
>> Jean-Frederic
>>
>> PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
>> set_threshold(util::CLASS_LOGGER, INFO);
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Jean-frederic Clere <jf...@gmail.com>.
Geir Magnusson Jr. wrote:

>
>
> Jean-frederic Clere wrote:
>
>> Mikhail Fursov wrote:
>>
>>> Do you expect an output like RI does:
>>> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
>>> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
>>> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>>> ...
>>>
>>> Should we be compatible with it by default?
>>
>>
>> If we have a -verbose option, yes.  It is very helpfull to know which 
>> classes and in which order they are loaded.
>>
>>>
>>> I know that there are several -verbose sub-options, like -verbose:em
>>> + we have -Xtrace option for more detailed info. Try -Xtrace,
>>> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.
>>
>>
>> Xtrace:classloader contains what I am looking for it is too verbose.
>
>
> Yes, that would be our
>
>   -tooverbose
>
> option :)
>
> Can you put in a JIRA for this please?

Done HARMONY-1847

Cheers

Jean-Frederic

>
> geir
>
>>
>> Cheers
>>
>> Jean-Frederic
>>
>>>
>>>
>>> On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I have noted the than java -verbose does not print any information, is
>>>> that normal?
>>>>
>>>> Cheers
>>>>
>>>> Jean-Frederic
>>>>
>>>> PS: It looks is set correctly in 
>>>> vm/vmcore/src/init/parse_arguments.cpp:
>>>> set_threshold(util::CLASS_LOGGER, INFO);
>>>>
>>>> ---------------------------------------------------------------------
>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>>>
>>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.

Jean-frederic Clere wrote:
> Mikhail Fursov wrote:
> 
>> Do you expect an output like RI does:
>> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
>> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> ...
>>
>> Should we be compatible with it by default?
> 
> If we have a -verbose option, yes.  It is very helpfull to know which 
> classes and in which order they are loaded.
> 
>>
>> I know that there are several -verbose sub-options, like -verbose:em
>> + we have -Xtrace option for more detailed info. Try -Xtrace,
>> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.
> 
> Xtrace:classloader contains what I am looking for it is too verbose.

Yes, that would be our

   -tooverbose

option :)

Can you put in a JIRA for this please?

geir

> 
> Cheers
> 
> Jean-Frederic
> 
>>
>>
>> On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> I have noted the than java -verbose does not print any information, is
>>> that normal?
>>>
>>> Cheers
>>>
>>> Jean-Frederic
>>>
>>> PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
>>> set_threshold(util::CLASS_LOGGER, INFO);
>>>
>>> ---------------------------------------------------------------------
>>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>>
>>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Tim Ellison <t....@gmail.com>.
Salikh Zakirov wrote:
> Technically, -verbose is equivalent to '-verbose:jni -verbose:gc -verbose:class'.
> -verbose:class is also accepted.

I've not seen it used like that though -- it usually just prints out the
class loading info.

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Salikh Zakirov <Sa...@Intel.com>.
Jean-frederic Clere wrote:
> Mikhail Fursov wrote:
> 
>> Do you expect an output like RI does:
>> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
>> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
>> ...
>>
>> Should we be compatible with it by default?
> 
> If we have a -verbose option, yes.  It is very helpfull to know which
> classes and in which order they are loaded.
> 
>>
>> I know that there are several -verbose sub-options, like -verbose:em
>> + we have -Xtrace option for more detailed info. Try -Xtrace,
>> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.
> 
> Xtrace:classloader contains what I am looking for it is too verbose.

The intention of -verbose flag was to provide the same information as RI
does. The fact that '-verbose' does not show anything, is a bug.
Technically, -verbose is equivalent to '-verbose:jni -verbose:gc -verbose:class'.
-verbose:class is also accepted.
In fact, -verbose:xyz will be accepted too, but will not produce any output
unless someone puts INFO2("xyz", "some message") calls into DRLVM sources.

I suspect that no output may be caused by missing flush() call in the
logger call.

-Xtrace:classloader is the developer-oriented debugging output,
as is -Xlog:classloader (trace is more verbose).
These flags are not available in the release build of DRLVM.
-Xtrace:xyz and -Xlog:xyz are also general and correspond
to TRACE2("xyz", "") and LOG2("xyz", "") calls respectively.


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Jean-frederic Clere <jf...@gmail.com>.
Mikhail Fursov wrote:

> Do you expect an output like RI does:
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> ...
>
> Should we be compatible with it by default?

If we have a -verbose option, yes.  It is very helpfull to know which 
classes and in which order they are loaded.

>
> I know that there are several -verbose sub-options, like -verbose:em
> + we have -Xtrace option for more detailed info. Try -Xtrace,
> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.

Xtrace:classloader contains what I am looking for it is too verbose.

Cheers

Jean-Frederic

>
>
> On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> I have noted the than java -verbose does not print any information, is
>> that normal?
>>
>> Cheers
>>
>> Jean-Frederic
>>
>> PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
>> set_threshold(util::CLASS_LOGGER, INFO);
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
>
>


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.

Mikhail Fursov wrote:
> Do you expect an output like RI does:
> [Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
> [Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> [Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
> ...
> 
> Should we be compatible with it by default?

Yes.

> 
> I know that there are several -verbose sub-options, like -verbose:em
> + we have -Xtrace option for more detailed info. Try -Xtrace,
> -Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.
> 
> 
> On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>>
>> Hi,
>>
>> I have noted the than java -verbose does not print any information, is
>> that normal?
>>
>> Cheers
>>
>> Jean-Frederic
>>
>> PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
>> set_threshold(util::CLASS_LOGGER, INFO);
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [drlvm] -verbose option does nothing

Posted by Mikhail Fursov <mi...@gmail.com>.
Do you expect an output like RI does:
[Opened C:\tools\sun1.5.0\jre\lib\rt.jar]
[Opened C:\tools\sun1.5.0\jre\lib\charsets.jar]
[Loaded java.lang.Object from C:\tools\sun1.5.0\jre\lib\rt.jar]
[Loaded java.io.Serializable from C:\tools\sun1.5.0\jre\lib\rt.jar]
[Loaded java.lang.Comparable from C:\tools\sun1.5.0\jre\lib\rt.jar]
...

Should we be compatible with it by default?

I know that there are several -verbose sub-options, like -verbose:em
+ we have -Xtrace option for more detailed info. Try -Xtrace,
-Xtrace:verifier, -Xtrace:classloader, -Xtrace:gc.


On 10/12/06, Jean-frederic Clere <jf...@gmail.com> wrote:
>
> Hi,
>
> I have noted the than java -verbose does not print any information, is
> that normal?
>
> Cheers
>
> Jean-Frederic
>
> PS: It looks is set correctly in vm/vmcore/src/init/parse_arguments.cpp:
> set_threshold(util::CLASS_LOGGER, INFO);
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Mikhail Fursov