FlameCafe

Wii U stack trace capture plugin for profiling with FlameGraph.

Example

The following graph was created with the default settings (3 frames, 50 microseconds interval).
You can click on the graph to zoom and interact with it.

Installation

([ENVIRONMENT] is a placeholder for the actual environment name.)

  1. Copy the file FlameCafe.wps into sd:/wiiu/environments/[ENVIRONMENT]/plugins.
  2. Requires the WiiUPluginLoaderBackend in sd:/wiiu/environments/[ENVIRONMENT]/modules.

Usage

Capture stacks

Via the plugin config menu (press L, DPAD Down and Minus on the GamePad, Pro Controller or Classic Controller) you can configure the plugin. The available options are the following:

Press the button combination to start a capture. The captures are saved to the wiiu/FlameCafe directory on the SD Card.

Generate Flame Graph

Clone https://github.com/brendangregg/FlameGraph and use flamegraph.pl to render a SVG graph from one of the captures on the SD Card.

$ ./flamegraph.pl 2025-02-16_14-43-04.txt > graph.svg

(The captures are already in the correct format, running the stackcollapse programs is not necessary.)

Building

For building you need: