In runtime verification, a monitor watches a trace of a system and, if possible, decides after observing each finite prefix whether or not the unknown infinite trace satisfies a given specification. We generalize the theory of runtime verification to monitors that attempt to estimate numerical values of quantitative trace properties (instead of attempting to conclude boolean values of trace specifications), such as maximal or average response time along a trace. Quantitative monitors are approximate: with every finite prefix, they can improve their estimate of the infinite trace's unknown property value. Consequently, quantitative monitors can be compared with regard to a precision-cost trade-off: better approximations of the property value require more monitor resources, such as states (in the case of finite-state monitors) or registers, and additional resources yield better approximations. We introduce a formal framework for quantitative and approximate monitoring, show how it conservatively generalizes the classical boolean setting for monitoring, and give several precision-cost trade-offs for monitors. For example, we prove that there are quantitative properties for which every additional register improves monitoring precision.
翻译:在运行时间的核查中,一个监测器观察一个系统的痕量,如果可能的话,在观察每个有限的前缀之后决定未知的无限痕量是否满足特定规格。我们推广运行时间核查理论,以监测试图估计量化痕量属性数值(而不是试图得出微量特性的布尔值)的运行时间核查理论,例如,最大或平均响应时间随跟踪而变化。量化监测器的近似性:每个有限的前缀都可以改进对无限痕量未知属性值的估计。因此,量化监测器可以与精确成本的权衡相比较:更精确的地算值近似需要更多的监测资源,例如国家(以固定状态监测器为例)或登记册,以及额外资源产生更好的近似值。我们引入了定量和近似监测的正式框架,表明它如何保守地概括典型的布林监测环境,并为监测器提供若干精确成本的权衡。例如,我们证明有定量特性,每个额外的登记册都会改进监测的精确度。