| 369 | const ProfileNode& node() { return node_; } |
| 370 | |
| 371 | bool trackable(int64 step) const { |
| 372 | auto exec = execs_.find(step); |
| 373 | if (exec == execs_.end()) return false; |
| 374 | |
| 375 | if (exec->second.all_start_micros() == 0) return false; |
| 376 | if (node_.canonical_device().empty() || node_.host_device().empty()) { |
| 377 | return false; |
| 378 | } |
| 379 | return true; |
| 380 | } |
| 381 | |
| 382 | const ProfileNode& ToProto( |
| 383 | const std::map<string, std::unique_ptr<TFGraphNode>>& nodes_map) { |
no test coverage detected