Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

PredictorTimer 类

Provides timing measurement functionality for predictor pipeline stages. 为预测器流水线阶段提供计时测量功能。

Definition

命名空间: DeploySharp.Common
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class PredictorTimer
Inheritance
Object    PredictorTimer

备注

This class allows precise measurement of preprocessing, inference, and postprocessing phases using Stopwatch. 此类允许使用Stopwatch精确测量预处理、推理和后处理阶段。

构造函数

PredictorTimer初始化 PredictorTimer 类的一个新实例

方法

EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
StartInference Starts timing for inference phase and records preprocessing duration. 开始推理阶段的计时,并记录预处理持续时间。
StartPostprocess Starts timing for postprocessing phase and records inference duration. 开始后处理阶段的计时,并记录推理持续时间。
StartPreprocess Starts timing for preprocessing phase. 开始预处理阶段的计时。
Stop Stops timing and returns accumulated measurements. 停止计时并返回累积的测量结果。
ToStringReturns a string that represents the current object.
(继承自 Object。)

字段

inference Stores accumulated time spent in inference phase. 存储推理阶段累积的时间。
postprocess Stores accumulated time spent in postprocessing phase. 存储后处理阶段累积的时间。
preprocess Stores accumulated time spent in preprocessing phase. 存储预处理阶段累积的时间。
stopwatch Stopwatch instance used for precise timing measurements. 用于精确计时测量的Stopwatch实例。

参见