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

Method CreateEvent

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

Source from the content-addressed store, hash-verified

40} // namespace
41
42Json::Value ChromeTraceFormatter::CreateEvent(const string& ph,
43 const string& category,
44 const string& name, int64 pid,
45 int64 tid, int64 ts) {
46 Json::Value event(Json::objectValue);
47 event["ph"] = Json::Value(ph);
48 event["cat"] = Json::Value(category);
49 event["name"] = Json::Value(name);
50 event["pid"] = Json::Int64(pid);
51 event["tid"] = Json::Int64(tid);
52 event["ts"] = Json::Int64(ts);
53 return event;
54}
55
56void ChromeTraceFormatter::EmitPID(const string& name, int64 pid) {
57 Json::Value event(Json::objectValue);

Callers

nothing calls this directly

Calls 1

ValueFunction · 0.50

Tested by

no test coverage detected