MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / OutputTimeline

Method OutputTimeline

tensorflow/core/profiler/internal/tfprof_timeline.cc:323–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void Timeline::OutputTimeline() {
324 string outfile = strings::Printf("%s_%lld", outfile_.c_str(), step());
325 Status s =
326 WriteStringToFile(Env::Default(), outfile, chrome_formatter_.Format());
327 if (!s.ok()) {
328 fprintf(stderr, "Failed to write timeline file: %s\nError: %s\n",
329 outfile.c_str(), s.ToString().c_str());
330 return;
331 }
332 fprintf(stdout, "\n******************************************************\n");
333 fprintf(stdout,
334 "Timeline file is written to %s.\n"
335 "Open a Chrome browser, enter URL chrome://tracing and "
336 "load the timeline file.",
337 outfile.c_str());
338 fprintf(stdout, "\n******************************************************\n");
339 fflush(stdout);
340}
341
342void Timeline::AllocateLanes() {
343 for (auto& process : tnodes_) {

Callers

nothing calls this directly

Calls 8

PrintfFunction · 0.85
WriteStringToFileFunction · 0.85
DefaultFunction · 0.85
c_strMethod · 0.80
stepFunction · 0.50
FormatMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected