tensorflow/core/profiler/convert/post_process_single_host_xplane.cc
// Merges XPlanes generated by TraceMe, CUPTI API trace and Python tracer.
Merges XPlanes generated by TraceMe, CUPTI API trace and Python tracer.
Merges XPlanes generated by TraceMe CUPTI API trace and Python tracer .
void MergeHostPlanesAndSortLines(XSpace* space) {
  XPlane* host_plane =
      FindOrAddMutablePlaneWithName(space, kHostThreadsPlaneName);
  std::vector<const XPlane*> additional_host_planes = FindPlanesWithNames(
      *space, {kTpuRuntimePlaneName, kCuptiDriverApiPlaneName,
               kPythonTracerPlaneName, kRoctracerApiPlaneName});
  if (!additional_host_planes.empty()) {
    MergePlanes(additional_host_planes, host_plane);
    RemovePlanes(space, additional_host_planes);
  }
  SortXLinesBy(host_plane, XLinesComparatorByName());
}
void MergeHostPlanesAndSortLines ( XSpace * space ) { XPlane * host_plane = FindOrAddMutablePlaneWithName ( space , kHostThreadsPlaneName ) ; std :: vector < const XPlane * > additional_host_planes = FindPlanesWithNames ( * space , { kTpuRuntimePlaneName , kCuptiDriverApiPlaneName , kPythonTracerPlaneName , kRoctracerApiPlaneName } ) ; if ( ! additional_host_planes . empty ( ) ) { MergePlanes ( additional_host_planes , host_plane ) ; RemovePlanes ( space , additional_host_planes ) ; } SortXLinesBy ( host_plane , XLinesComparatorByName ( ) ) ; }
Merges XPlanes generated by TraceMe, CUPTI API trace and Python tracer.
Merges XPlanes generated by TraceMe CUPTI API trace and Python tracer .