tensorflow/core/profiler/utils/group_events.cc
// Sorts root events based on root level and timestamp.
Sorts root events based on root level and timestamp.
Sorts root events based on root level and timestamp .
void SortRootEventList(EventList* event_list) {
  absl::c_sort(*event_list, [](const EventNode* e1, const EventNode* e2) {
    return e1->RootLevel() == e2->RootLevel()
               ? *e1 < *e2
               : e1->RootLevel() > e2->RootLevel();
  });
}
void SortRootEventList ( EventList * event_list ) { absl :: c_sort ( * event_list , [ ] ( const EventNode * e1 , const EventNode * e2 ) { return e1 -> RootLevel ( ) == e2 -> RootLevel ( ) ? * e1 < * e2 : e1 -> RootLevel ( ) > e2 -> RootLevel ( ) ; } ) ; }
Sorts root events based on root level and timestamp.
Sorts root events based on root level and timestamp .
// If two root events have the same root level, the root event with an // earlier timestamp will be processed first. Otherwise, the event with a // larger root level will be processed first.