Module eflambe_brendan_gregg

Writes trace data to file formatted as Brendan Gregg's collapsed stack format.

Behaviours: eflambe_output_formatter.

Description

Writes trace data to file formatted as Brendan Gregg's collapsed stack format.

See https://github.com/brendangregg/FlameGraph/blob/master/stackcollapse.pl

This file was heavily inspired by https://github.com/proger/eflame/blob/master/src/eflame.erl

Function Index

extension/0
finalize/2 This callback exists so the implementation module can finalize processing of the trace data.
handle_trace_event/2 This callback exists so the implementation module can process each individual trace event.
init/2 This callback exists so the implementation can initialize its own internal state.

Function Details

extension/0

extension() -> any()

finalize/2

finalize(Options, State) -> any()

This callback exists so the implementation module can finalize processing of the trace data. For example, any last minute formatting or flushing of data in state to disk.

handle_trace_event/2

handle_trace_event(Trace, State) -> any()

This callback exists so the implementation module can process each individual trace event.

init/2

init(Filename, Options) -> any()

This callback exists so the implementation can initialize its own internal state. This may be useful for opening files, etc...


Generated by EDoc