Swift Package Index

FlameGraph

https://github.com/lennet/flamegraph.git

A simple tool to generate FlameGraphs from Xcode Instruments traces ๐Ÿ”ฅ๐Ÿ“Š


Compatibility

  • 0.15.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 0.15.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

FlameGraph

Work in Progress

A CommandLine tool to generate FlameGraphs from Xcode Instruments traces

An example FlameGraph for the -[AppDelegate application:didFinishLaunchingWithOptions:] method of the Wikipedia iOS App: Example output

Installation

Mint

$ mint install lennet/FlameGraph

Swift Package Manager

$ git clone https://github.com/lennet/FlameGraph.git
$ cd FlameGraph
$ swift run FlameGraph <args>

Usage

  1. Run Time Profiler in Instruments
  2. Select Thread and region you are interested in
  3. Edit > Deep copy โ‡งโŒ˜C
  4. $ FlameGraph <OutputPath.pdf>