Add temporary vlog messages for debugging.
PiperOrigin-RevId: 297894920 Change-Id: I46cb40e46276a98b40616e7bb89eacfd635f8940
This commit is contained in:
parent
956b1ec099
commit
9a4a5569e4
|
@ -37,20 +37,16 @@ Device BuildDeviceAndResource(const XPlaneVisitor& plane) {
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void ConvertXSpaceToTraceEvents(const XSpace& xspace, Trace* trace) {
|
void ConvertXSpaceToTraceEvents(const XSpace& xspace, Trace* trace) {
|
||||||
VLOG(1) << "ConvertXSpaceToTraceEvents";
|
|
||||||
auto* trace_devices = trace->mutable_devices();
|
auto* trace_devices = trace->mutable_devices();
|
||||||
|
|
||||||
for (const auto& raw_plane : xspace.planes()) {
|
for (const auto& raw_plane : xspace.planes()) {
|
||||||
XPlaneVisitor xplane(&raw_plane);
|
XPlaneVisitor xplane(&raw_plane);
|
||||||
VLOG(1) << " XPlane id=" << xplane.Id() << " name=" << xplane.Name();
|
|
||||||
// Convert devices and resources.
|
// Convert devices and resources.
|
||||||
int64 device_id = xplane.Id();
|
int64 device_id = xplane.Id();
|
||||||
(*trace_devices)[device_id] = BuildDeviceAndResource(xplane);
|
(*trace_devices)[device_id] = BuildDeviceAndResource(xplane);
|
||||||
|
|
||||||
// Convert events.
|
// Convert events.
|
||||||
xplane.ForEachLine([&](const XLineVisitor& xline) {
|
xplane.ForEachLine([&](const XLineVisitor& xline) {
|
||||||
VLOG(1) << " XLine id=" << xline.Id() << " name=" << xline.Name()
|
|
||||||
<< " display_id=" << xline.DisplayId();
|
|
||||||
int64 resource_id = xline.Id(); // Either thread id or CUDA stream id.
|
int64 resource_id = xline.Id(); // Either thread id or CUDA stream id.
|
||||||
xline.ForEachEvent([&](const XEventVisitor& xevent) {
|
xline.ForEachEvent([&](const XEventVisitor& xevent) {
|
||||||
auto* event = trace->add_trace_events();
|
auto* event = trace->add_trace_events();
|
||||||
|
|
Loading…
Reference in New Issue