perf_hooks.createHistogram([options])


  • options <Object>
    • lowest <number> | <bigint> 最低可识别值。 必须是大于 0 的整数值。 默认值: 1
    • highest <number> | <bigint> 最高可记录值。 必须是等于或大于 lowest 两倍的整数值。 默认值: Number.MAX_SAFE_INTEGER
    • figures <number> 精度位数。 必须是 15 之间的数字。 默认值: 3
  • 返回 <RecordableHistogram>

返回 <RecordableHistogram>

  • options <Object>
    • lowest <number> | <bigint> The lowest discernible value. Must be an integer value greater than 0. Default: 1.
    • highest <number> | <bigint> The highest recordable value. Must be an integer value that is equal to or greater than two times lowest. Default: Number.MAX_SAFE_INTEGER.
    • figures <number> The number of accuracy digits. Must be a number between 1 and 5. Default: 3.
  • Returns <RecordableHistogram>

Returns a <RecordableHistogram>.