Skip to content

skarcha/4gl-flamegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Flame Graphs for 4Js Genero

This is a script to convert Genero profiler output to a format suitable for FlameGraph.

Flame Graphs will allow you to visualize your programs bottlenecks.

Follow this steps:

Usage

1. Capture profiler data

Run your program with "-p" param. It will output the profiler data on stderr:

$ fglrun -p your_program.42r 2> your_program_profiler.log

2. Convert profiler data to stacks

Use stackcollapse-4gl.py:

$ python stackcollapse-4gl.py your_program_profiler.log > your_program_profiler.folded

3. Generate FlameGraph

Generate FlameGraph using Brendan D. Gregg's flamegraph.pl:

$ ./flamegraph.pl your_program_profiler.folded > your_program_profiler.svg

You can also do all in one line:

$ python stackcollapse-4gl.py your_program_profiler.log | ./flamegraph.pl > your_program_profiler.svg

Options

Usage: stackcollapse-4gl.py [options] [infile] > output.folded

    -ot   # Generate stacks using time spent per stack (default)
    -oc   # Generate stacks using number of calls per stack

About

Flame Graphs for 4Js Genero (4GL)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages