Skip to content

Commit e27c2e9

Browse files
Use complete trace window for metric calculation (#15)
1 parent 29e7c65 commit e27c2e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export default class Tracelib {
5454

5555
public getSummary(from?: number, to?: number): StatsObject {
5656
const timelineUtils = new TimelineUIUtils()
57-
const startTime = from || this._performanceModel.startTime
58-
const endTime = to || this._performanceModel.endTime
57+
const startTime = from || this._performanceModel.timelineModel().minimumRecordTime()
58+
const endTime = to || this._performanceModel.timelineModel().maximumRecordTime()
5959
const mainTrack = this._findMainTrack()
6060

6161
// We are facing data mutaion issue in devtools, to avoid it cloning syncEvents

0 commit comments

Comments
 (0)