如何在 omnetpp 中关闭直方图记录

how to turn-off histogram-recording in omnetpp

目前,我正在使用 Omnet++(网络模拟器),我知道如何关闭标量和向量记录,但是如何对直方图执行同样的操作(关闭直方图记录)?

我尝试关闭直方图的相关标量,但没有成功。

#### Histogram name #### 
"Delays for 1st Copy"

#### In order to turn of scalars recording we use this command ####
**.scalar-name.scalar-recording = true 

#### So i tried this but it doesnt work ####
**.Delays for 1st Copy.scalar-recording = true

谢谢,

一种选择是从 NED 文件的统计声明中删除 histogram 统计记录模式。

@statistic[foo](record=count,mean,histogram); # remove histogram from here

另一种选择是enable/disable来自omnetpp.ini

的统计记录模式

以下是OMNeT++中的一些基本录制模式

**.result-recording-modes = default  # records count, mean
**.result-recording-modes = all      # records count, mean, max
**.result-recording-modes = -        # records none
**.result-recording-modes = mean     # records only mean (disables 'default')

您可以通过在基本模式中添加或删除模式来获得模式高级组合:

**.result-recording-modes = default,-vector,+histogram # records count,mean,histogram
**.result-recording-modes = all,-vector,+histogram  # --> count,mean,max,histogram

您可能需要这样的东西:

**.result-recording-modes = default,-histogram 

要修改特定模块的模式,请提供 **result-recording-modes

之间的完整路径
**.fifo[*].queueLength.result-recording-modes = +vector  # default modes plus vector

可以在 OMNeT++ 手册中找到更多详细信息:https://omnetpp.org/doc/omnetpp/manual/usman.html#sec405