| 40 | } // namespace |
| 41 | |
| 42 | Json::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 | |
| 56 | void ChromeTraceFormatter::EmitPID(const string& name, int64 pid) { |
| 57 | Json::Value event(Json::objectValue); |