As per comments in cl/11834.
Change-Id: I285536b882fa9496e15d77d0d4c16ee913aca581
Reviewed-on: https://go-review.googlesource.com/11861
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
}
// Sort by time and translate cpu ticks to real time.
+ // Use stable sort because adjacent events in a batch can have the same timestamp
+ // (this was observed on some VMs).
sort.Stable(eventList(events))
if ticksPerSec == 0 {
err = fmt.Errorf("no EvFrequency event")