RFR: 8148630: Convert TraceStartupTime to Unified Logging

Kim Barrett kim.barrett at oracle.com
Wed Feb 17 04:40:30 UTC 2016


> On Feb 16, 2016, at 8:44 PM, David Holmes <david.holmes at oracle.com> wrote:
>>   TraceTime timer("Initialize java.lang classes",
>>                   log_is_enabled(Info, startuptime),
>> 		  LogWriter(Info, startuptime));
>> 
> 
> I've added the above to JDK-8150015. However I would much prefer that we can write simply:
> 
> TraceTime timer (<msg>, <log-tag>, <log-level>);
> 
> and internalize the log_is_enabled and LogWriter functionality.

I think that’s hard, but relatively easy would be something like

TraceTime timer(<msg>, LogTime(<level>, <tag>…);



More information about the hotspot-runtime-dev mailing list