update
This commit is contained in:
@@ -37,8 +37,13 @@ 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 {
|
||||
var entries []entry = nil
|
||||
|
||||
Reference in New Issue
Block a user