CDPotion.Domain.HeapProfiler (cdpotion v0.1.0)

Summary

Functions

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

Parameters:

  • objectId:Runtime.RemoteObjectId: Identifier of the object to get heap object id for.

Parameters:

  • objectId:HeapSnapshotObjectId: description not provided :(
  • objectGroup:string: (Optional) Symbolic group name that can be used to release multiple objects.

Parameters:

  • samplingInterval:number: (Optional) Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
  • includeObjectsCollectedByMajorGC:boolean: (Optional) By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by major GC, which will show which functions cause large temporary memory usage or long GC pauses.
  • includeObjectsCollectedByMinorGC:boolean: (Optional) By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by minor GC, which is useful when tuning a latency-sensitive application for minimal GC activity.

Parameters:

  • trackAllocations:boolean: (Optional) description not provided :(

Parameters:

  • reportProgress:boolean: (Optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
  • treatGlobalObjectsAsRoots:boolean: (Optional) Deprecated in favor of exposeInternals.
  • captureNumericValue:boolean: (Optional) If true, numerical values are included in the snapshot
  • exposeInternals:boolean: (Optional) If true, exposes internals of the snapshot.

Parameters:

  • reportProgress:boolean: (Optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
  • treatGlobalObjectsAsRoots:boolean: (Optional) If true, a raw snapshot without artificial roots will be generated. Deprecated in favor of exposeInternals.
  • captureNumericValue:boolean: (Optional) If true, numerical values are included in the snapshot
  • exposeInternals:boolean: (Optional) If true, exposes internals of the snapshot.

Functions

Link to this function

add_inspected_heap_object(heap_object_id)

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

Parameters:

  • heapObjectId:HeapSnapshotObjectId: Heap snapshot object id to be accessible by means of $x command line API.
Link to this function

collect_garbage()

Link to this function

get_heap_object_id(object_id)

Parameters:

  • objectId:Runtime.RemoteObjectId: Identifier of the object to get heap object id for.
Link to this function

get_object_by_heap_object_id(object_id, object_group \\ nil)

Parameters:

  • objectId:HeapSnapshotObjectId: description not provided :(
  • objectGroup:string: (Optional) Symbolic group name that can be used to release multiple objects.
Link to this function

get_sampling_profile()

Link to this function

start_sampling(sampling_interval \\ nil, include_objects_collected_by_major_gc \\ nil, include_objects_collected_by_minor_gc \\ nil)

Parameters:

  • samplingInterval:number: (Optional) Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
  • includeObjectsCollectedByMajorGC:boolean: (Optional) By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by major GC, which will show which functions cause large temporary memory usage or long GC pauses.
  • includeObjectsCollectedByMinorGC:boolean: (Optional) By default, the sampling heap profiler reports only objects which are still alive when the profile is returned via getSamplingProfile or stopSampling, which is useful for determining what functions contribute the most to steady-state memory usage. This flag instructs the sampling heap profiler to also include information about objects discarded by minor GC, which is useful when tuning a latency-sensitive application for minimal GC activity.
Link to this function

start_tracking_heap_objects(track_allocations \\ nil)

Parameters:

  • trackAllocations:boolean: (Optional) description not provided :(
Link to this function

stop_sampling()

Link to this function

stop_tracking_heap_objects(report_progress \\ nil, treat_global_objects_as_roots \\ nil, capture_numeric_value \\ nil, expose_internals \\ nil)

Parameters:

  • reportProgress:boolean: (Optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
  • treatGlobalObjectsAsRoots:boolean: (Optional) Deprecated in favor of exposeInternals.
  • captureNumericValue:boolean: (Optional) If true, numerical values are included in the snapshot
  • exposeInternals:boolean: (Optional) If true, exposes internals of the snapshot.
Link to this function

take_heap_snapshot(report_progress \\ nil, treat_global_objects_as_roots \\ nil, capture_numeric_value \\ nil, expose_internals \\ nil)

Parameters:

  • reportProgress:boolean: (Optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
  • treatGlobalObjectsAsRoots:boolean: (Optional) If true, a raw snapshot without artificial roots will be generated. Deprecated in favor of exposeInternals.
  • captureNumericValue:boolean: (Optional) If true, numerical values are included in the snapshot
  • exposeInternals:boolean: (Optional) If true, exposes internals of the snapshot.