| 219 | } |
| 220 | |
| 221 | std::vector<string> TFMultiShow::FormatTimes(const ShowMultiNode* node, |
| 222 | const Options& opts) const { |
| 223 | std::vector<string> attrs; |
| 224 | if (opts.select.find(kShown[1]) != opts.select.end()) { |
| 225 | attrs.push_back(FormatTotalExecTime(node, opts)); |
| 226 | attrs.push_back(FormatAcceleratorExecTime(node, opts)); |
| 227 | attrs.push_back(FormatCPUExecTime(node, opts)); |
| 228 | } |
| 229 | if (opts.select.find(kShown[9]) != opts.select.end() && |
| 230 | opts.select.find(kShown[1]) == opts.select.end()) { |
| 231 | attrs.push_back(FormatAcceleratorExecTime(node, opts)); |
| 232 | } |
| 233 | if (opts.select.find(kShown[10]) != opts.select.end() && |
| 234 | opts.select.find(kShown[1]) == opts.select.end()) { |
| 235 | attrs.push_back(FormatCPUExecTime(node, opts)); |
| 236 | } |
| 237 | return attrs; |
| 238 | } |
| 239 | |
| 240 | } // namespace tfprof |
| 241 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected