Itaybre / Trace2JSON

Export Instrument's traces to JSON format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:Swift 72.8%Language:Objective-C 27.2%