Home
last modified time | relevance | path

Searched refs:to_json (Results 1 – 2 of 2) sorted by relevance

/linux/tools/perf/
H A Dbuiltin-data.c31 const char *to_json; variable
41 OPT_STRING(0, "to-json", &to_json, NULL, "Convert to JSON format"),
61 if (to_json && to_ctf) { in cmd_data_convert()
66 if (!to_json && !to_ctf) { in cmd_data_convert()
71 if (!to_json) { in cmd_data_convert()
77 if (to_json) in cmd_data_convert()
78 return bt_convert__perf2json(input_name, to_json, &opts); in cmd_data_convert()
/linux/tools/perf/scripts/python/
H A Dflamegraph.py61 def to_json(self): member in Node
133 stacks_json = json.dumps(self.stack, default=lambda x: x.to_json())