src/share/vm/c1/c1_Compilation.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot-comp Cdiff src/share/vm/c1/c1_Compilation.cpp

src/share/vm/c1/c1_Compilation.cpp

Print this page
rev 5065 : 8022456: LogCompilation tool does not work with C1 output again
Reviewed-by:

*** 72,99 **** class PhaseTraceTime: public TraceTime { private: JavaThread* _thread; CompileLog* _log; public: PhaseTraceTime(TimerName timer) ! : TraceTime("", &timers[timer], CITime || CITimeEach, Verbose), _log(NULL) { if (Compilation::current() != NULL) { _log = Compilation::current()->log(); } if (_log != NULL) { ! _log->begin_head("phase name='%s'", timer_name[timer]); _log->stamp(); _log->end_head(); } } ~PhaseTraceTime() { if (_log != NULL) ! _log->done("phase"); } }; // Implementation of Compilation --- 72,102 ---- class PhaseTraceTime: public TraceTime { private: JavaThread* _thread; CompileLog* _log; + TimerName _timer; public: PhaseTraceTime(TimerName timer) ! : TraceTime("", &timers[timer], CITime || CITimeEach, Verbose), ! _log(NULL), _timer(timer) ! { if (Compilation::current() != NULL) { _log = Compilation::current()->log(); } if (_log != NULL) { ! _log->begin_head("phase name='%s'", timer_name[_timer]); _log->stamp(); _log->end_head(); } } ~PhaseTraceTime() { if (_log != NULL) ! _log->done("phase name='%s'", timer_name[_timer]); } }; // Implementation of Compilation
src/share/vm/c1/c1_Compilation.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File