%description: Test histogram recording via @statistics: - for a @statistic named foo, the histogram is saved under the name foo:histogram Test case 2: start with all scalar results disabled %file: test.ned simple Node extends testlib.StatNode { @statistic[bins](source=foo; record=histogram); // to be recorded with bins @statistic[nobins](source=foo; record=histogram); // to be recorded without bins (just basic stats) @statistic[nothing](source=foo; record=histogram); // not to be recorded at all @statistic[dummy](source=foo; record=last); // to add a delimiter line at the end of the sca file } network Test { submodules: node: Node; } %inifile: omnetpp.ini **.bins:histogram.scalar-recording = true **.nobins:histogram.scalar-recording = true **.nobins:histogram.bin-recording = false **.dummy:last.scalar-recording = true **.scalar-recording = false %contains: results/General-#0.sca statistic Test.node bins:histogram field count 100 field mean 19.84 field stddev 3.1549864332417 field min 12 field max 28 field sum 1984 field sqrsum 40348 attr source foo bin -inf 0 bin 8 0 bin 9 0 bin 10 0 bin 11 0 bin 12 3 bin 13 1 bin 14 3 bin 15 2 bin 16 6 bin 17 6 bin 18 8 bin 19 11 bin 20 15 bin 21 14 bin 22 14 bin 23 8 bin 24 5 bin 25 1 bin 26 1 bin 27 1 bin 28 1 bin 29 0 bin 30 0 bin 31 0 bin 32 0 statistic Test.node nobins:histogram field count 100 field mean 19.84 field stddev 3.1549864332417 field min 12 field max 28 field sum 1984 field sqrsum 40348 attr source foo scalar Test.node dummy:last 17 attr source foo