blob: 53cbb33b042f7ced149a924177cb4644fae12885 [file] [log] [blame] [view]
# fx snapshot
Obtain and parse a snapshot from a connected target.
```none
Connects to a running target and obtains a snapshot that contains useful
information for debugging a target.
Information supplied includes:
- Build information and annotations.
- Kernel and System logs.
- Inspect Data.
If no directory is supplied, a unique one will be generated.
Usage: fx snapshot [(--output-directory|-o)] <DIRECTORY>] -- <TARGET ARGS>
--output-directory (Optional) Directory where the files will be stored.
Must be an existing directory.
```
[snapshot source code](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/contrib/snapshot)