NovaECS - v1.0.11
    Preparing search index...

    Class Profiler

    System profiler with exponential moving average 使用指数移动平均的系统分析器

    Index

    Constructors

    • Parameters

      • emaAlpha: number = 0.15

        EMA smoothing factor (0-1), higher = more weight to recent values EMA平滑因子(0-1),越高越重视最近的值

      Returns Profiler

    Properties

    emaAlpha: number = 0.15

    EMA smoothing factor (0-1), higher = more weight to recent values EMA平滑因子(0-1),越高越重视最近的值

    Methods

    • Clear all statistics 清空所有统计信息

      Returns void

    • Record execution time for a system 记录系统执行时间

      Parameters

      Returns void

    • Reset maximum execution times to current last values 将最大执行时间重置为当前最后值

      Returns void

    • Get top N systems by average execution time 按平均执行时间获取前N个系统

      Parameters

      • n: number = 10

      Returns SysStat[]