Socket
Book a DemoInstallSign in
Socket

concurix-waterfalltransform

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concurix-waterfalltransform

Transform Concurix waterfall trace data into other useful data structures

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

concurix-waterfalltransform

Build Status

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  // this controls the summarization factor.  Andything smaller than 1/summaryFactor in size will be aggregated
}

Performs an inplace enhancement of the waterfall trace data structure. The following fields will be added:

{
  "waterfalls": [
    "maxEnd":           //the maximum 'end' value in this waterfall
    "summary": {        //a summary view of the waterfall
      "subSegments": [
        {

        }
      ]
    },
    "fnSegs": []       //array referencing just the function segments
    "waitSegs": []     //array referencing just the wait segments
    "segments": [
      {
        "id":          //a synthetic id for the segment
        ...
        "subSegments": [
          {
            "id":      //a synthethic id for the subsegment
            "start": 0
            "end": 0
            "exclusive": 0
            "parent":   //points back to the parent segment
          }
        ]
      }
    ]
  ]
}

Keywords

Concurix

FAQs

Package last updated on 25 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts