This commit is contained in:
Robert Morris
2022-01-10 15:13:53 -05:00
parent 04a0ed2d03
commit 7e5eb65220

View File

@@ -37,7 +37,12 @@ func (a byTime) Swap(i, j int) {
}
func (a byTime) Less(i, j int) bool {
if a[i].time != a[j].time {
return a[i].time < a[j].time
}
// if the timestamps are the same, we need to make sure we order calls
// before returns
return a[i].kind == callEntry && a[j].kind == returnEntry
}
func makeEntries(history []Operation) []entry {