Skip to content

Commit

Permalink
bug: Diary was getting time of first collection set properly from the…
Browse files Browse the repository at this point in the history
… diarizer
  • Loading branch information
kcpeppe committed Apr 21, 2022
1 parent c478a62 commit 6cea993
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/src/main/java/com/microsoft/gctoolkit/jvm/Diary.java
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ public void setTimeOfFirstEvent(DateTimeStamp startTime) {
if ( this.timeOfFirstEvent == null)
this.timeOfFirstEvent = startTime;
}

public DateTimeStamp getTimeOfFirstEvent() {
return this.timeOfFirstEvent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ private void timeOfFirstEvent(String line) {
return; // G1Ergonomics doesn't respect PrintDateStamp which confuses downstream calculations
}
GCLogTrace trace = PreUnifiedTokens.DATE_TIMESTAMP_RECORD.parse(line);
if (trace != null)
if (trace != null) {
timeOfFirstEvent = trace.getDateTimeStamp();
diary.setTimeOfFirstEvent(timeOfFirstEvent);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<connection>scm:git:${repository.url}</connection>
<developerConnection>scm:git:${repository.url}</developerConnection>
<url>${repository.url}</url>
<tag>gctoolkit-2.0.5</tag>
<tag>gctoolkit-2.0.10</tag>
</scm>

<developers>
Expand Down

0 comments on commit 6cea993

Please sign in to comment.