-
flamegraph(arr, opts) → {string}
-
Converts an array of call graph lines into an svg document.
Parameters:
Name Type Description arrArray.<string> input lines to render svg for
optsObject objects that affect the visualization
Properties
Name Type Description profileObject options passed to cpuprofilify @see cpuprofilify.convert params
fonttypestring type of font to use default:
'Verdana'fontsizenumber base text size default:
12imagewidthnumber max width, pixels default:
1200frameheightnumber max height is dynamic default:
16.0fontwidthnumber avg width relative to fontsize default:
0.59minwidthnumber min function width, pixels default:
0.1countnamestring what are the counts in the data? default:
'samples'colorsstring color theme default:
'hot'bgcolor1string background color gradient start default:
'#eeeeee'bgcolor2string background color gradient stop default:
'#eeeeb0'timemaxnumber (override the) sum of the counts default:
Infinityfactornumber factor to scale counts by default:
1hashboolean color by function name default:
truetitletextstring centered heading default:
'Flame Graph'nametypestring what are the names in the data? default:
'Function:'Returns:
svg the rendered svg
- Type
- string
-
flamegraph::fromStream(stream, opts) → {ReadableStream}
-
Converts a stream of call graph lines into an svg document. Not truly streaming, concats all lines before processing.
Example:
var fromStream = require('flamegraph/from-stream'); fromStream(process.stdin, opts).pipe(process.stdout);Parameters:
Name Type Description streamReadableStream that will emit the call graph lines to be parsed
optsObject same as
flamegraph- Source:
Returns:
stream that emits the lines of generated svg
- Type
- ReadableStream
-
flamegraph::svg(collapsedLines, opts) → {string}
-
Creates a context from a call graph that has been collapsed (
stackcollapse-*) and renders svg from it.Parameters:
Name Type Description collapsedLinesArray.<string> callgraph that has been collapsed
optsObject options
- Source:
Returns:
svg
- Type
- string
Maintenance
Commit Frequency
Further analysis of the maintenance status of flamegraph based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for flamegraph is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.


