| 54 | } |
| 55 | |
| 56 | void 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 | |
| 67 | void ChromeTraceFormatter::EmitRegion(int64 ts, int64 duration, int64 pid, |
| 68 | int64 tid, const string& category, |
no test coverage detected