jitwatch
jitwatch copied to clipboard
Adjust timestamps based on hotspot_log.time_ms
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.
Thanks, good idea. Will make it easier to correlate with other log files.
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.