| <!-- DO NOT EDIT THIS FILE DIRECTLY |
| |
| This file is generated using clidoc by parsing the help output of this tool. |
| Please edit the help output or clidoc's processing of that output to make changes |
| to this file. |
| |
| --> |
| |
| # trace2json |
| |
| ```none {: style="white-space: break-spaces;" .devsite-disable-click-to-copy} |
| |
| trace2json [options]: Convert a trace from fxt (Fuchsia trace format) to json (Chrome trace format). |
| Fuchsia trace format: https://fuchsia.googlesource.com/fuchsia/+/HEAD/docs/development/tracing/trace-format/ |
| Chrome trace format: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/edit |
| --category=[]: An exact string to match against event categories. Events that do not match will be dropped. This parameter may be specified multiple times. |
| --help: Print this help message. |
| --input-file=[]: Read trace from the specified file. |
| --output-file=[]: Write the converted trace to the specified file. |
| --pattern=[]: A regular expression to match against event names. Events that do not match will be dropped. This parameter may be specified multiple times. |
| --system-event-output-file=[]: Optional. Write the system trace events to the specified file in jsonlines format. If provided, the main output file will not contain system trace events. |
| |
| ``` |
| |