Skip to content

Latest commit

 

History

History
55 lines (51 loc) · 1.19 KB

JSAPI.md

File metadata and controls

55 lines (51 loc) · 1.19 KB
class LLNode {
  /**
   * @param {string} dump path to the coredump
   * @param {string} executable path to the node executable
   * @returns {LLNode} an LLNode instance
   */
  static fromCoreDump(dump, executable) {}

  /**
   * @returns {string} SBProcess information
   */
  getProcessInfo() {}

  /**
   * @typedef {object} Frame
   * @property {string} function
   * 
   * @typedef {object} Thread
   * @property {number} threadId
   * @property {number} frameCount
   * @property {Frame[]} frames
   * 
   * @typedef {object} Process
   * @property {number} pid
   * @property {string} state
   * @property {number} threadCount
   * @property {Thread[]} threads
   * 
   * @returns {Process} Process data
   */
  getProcessobject() {}

  /**
   * @typedef {object} HeapInstance
   * @property {string} address
   * @property {string} value
   * 
   * @typedef {object} HeapType
   * @property {string} typeName
   * @property {string} instanceCount
   * @property {string} totalSize
   * @property {Iterator<HeapInstance>} instances
   * 
   * @returns {HeapType[]}
   */
  getHeapTypes() {}

  /**
   * TODO: rematerialize object
   * @returns {HeapInstance}
   */
  getobjectAtAddress(address) {}
}