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

Method EmitPID

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

Source from the content-addressed store, hash-verified

54}
55
56void ChromeTraceFormatter::EmitPID(const string& name, int64 pid) {
57 Json::Value event(Json::objectValue);
58 event["name"] = Json::Value("process_name");
59 event["ph"] = Json::Value("M");
60 event["pid"] = Json::Int64(pid);
61 Json::Value args(Json::objectValue);
62 args["name"] = Json::Value(name);
63 event["args"] = args;
64 metadata_.push_back(event);
65}
66
67void ChromeTraceFormatter::EmitRegion(int64 ts, int64 duration, int64 pid,
68 int64 tid, const string& category,

Callers 3

AllocateTimeNodesMethod · 0.80
GenerateGraphTimelineMethod · 0.80
EmitTreeNodeMethod · 0.80

Calls 2

ValueFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected