jitwatch icon indicating copy to clipboard operation
jitwatch copied to clipboard

Adjust timestamps based on hotspot_log.time_ms

Open mjmeehan opened this issue 6 years ago • 2 comments

Timestamps in timeline output are displayed relative to the start time of the process. This is because stamp entries are marked as of the start time of the JVM. Adjust these relative timestamps by the timestamp recorded in the <hotspot_log time_ms='1519794663869'> tag.

Essentially, instead of just converting stamp to hours, use hotspot_log.time_ms / 1000 + stamp to generate a datetime.

mjmeehan avatar Feb 28 '18 16:02 mjmeehan

Thanks, good idea. Will make it easier to correlate with other log files.

chriswhocodes avatar Mar 02 '18 22:03 chriswhocodes

Implemented back end of this feature in https://github.com/AdoptOpenJDK/jitwatch/commit/32673264a70d725822f4de0e4f60973bd5bd0e5c

Now need to add options in UI to view log timestmpas as absolute time.

chriswhocodes avatar Apr 12 '18 21:04 chriswhocodes