Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
itaybrePublic archive

About

Export Instrument's traces to JSON format

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Trace2JSON

Export Instrument's traces to JSON format

Usage

USAGE: trace2json [--process <process>] [--pid <pid>] [--pretty] [--show-unsupported] [--output <output>] <path>

ARGUMENTS:
  <path>                  Path to .trace to parse. 

OPTIONS:
  --process <process>     Process Name to filter when available. 
  --pid <pid>             Process PID to filter when available. 
  --pretty                Enable JSON pretty print. 
  -s, --show-unsupported  Show unsupported instruments in output JSON. 
  -o, --output <output>   Output path. 
  -h, --help              Show help information.

Requirements

  • Xcode 11 and up
  • MacOS 10.14+
  • Xcode installed at path /Applications/Xcode.app

TODO

  • Cleanup code
  • Add more instruments

FAQ

Supported Instruments

  • Activity Monitor
  • Core Animation FPS
  • Network Connections
  • Leaks
  • Allocations
  • CPU Activity Impact

Known Issues

  • Doesn't work with Xcode 12 but you can use the new CLI xtrace for this

Inspiration

TraceUtility

Contact

Trace2JSON is developed by Itay Brenner.

About

Export Instrument's traces to JSON format

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages