concurix-waterfalltransform

Transform functions that take raw Concurix waterfall trace formats and transform them into other useful data structures.
Install
npm install --save concurix-waterfalltransform`
Usage
var xform = require('concurix-waterfalltransform')
API
xform.graph(waterfall)
Convert a raw waterfall trace into a 'nodes, links' structure with the following schema:
{
"nodes": [{
"id": "some id",
"duration": "in microseconds",
"child_duration": "in microseconds",
"exclusive_duration": "duration - child_duration"
"num_calls": "number of calls"
}],
"links": [{
"id": "source~target",
"source": "id",
"target": "id",
"num_calls": "number of calls",
"total_delay": "in microseconds"
}]
}
xform.enhanceWaterfall(waterfall, options)
Options is an object with the following fields:
{
summaryFactor: 1000
}
Performs an inplace enhancement of the waterfall trace data structure. The following fields
will be added:
{
"waterfalls": [
"maxEnd":
"summary": {
"subSegments": [
{
}
]
},
"fnSegs": []
"waitSegs": []
"segments": [
{
"id":
...
"subSegments": [
{
"id":
"start": 0
"end": 0
"exclusive": 0
"parent":
}
]
}
]
]
}