|
8 | 8 |
|
9 | 9 | #include <core/CContainerPrinter.h>
|
10 | 10 | #include <core/CJsonOutputStreamWrapper.h>
|
| 11 | +#include <core/CProgramCounters.h> |
11 | 12 | #include <core/CStringUtils.h>
|
12 | 13 |
|
13 | 14 | #include <maths/CBasicStatistics.h>
|
@@ -242,6 +243,13 @@ void CDataFrameAnalyzerTest::testRunOutlierDetection() {
|
242 | 243 | }
|
243 | 244 | CPPUNIT_ASSERT(expectedScore == expectedScores.end());
|
244 | 245 | CPPUNIT_ASSERT(progressCompleted);
|
| 246 | + |
| 247 | + LOG_DEBUG(<< "number partitions = " |
| 248 | + << core::CProgramCounters::counter(counter_t::E_DFONumberPartitions)); |
| 249 | + LOG_DEBUG(<< "peak memory = " |
| 250 | + << core::CProgramCounters::counter(counter_t::E_DFOPeakMemoryUsage)); |
| 251 | + CPPUNIT_ASSERT(core::CProgramCounters::counter(counter_t::E_DFONumberPartitions) == 1); |
| 252 | + CPPUNIT_ASSERT(core::CProgramCounters::counter(counter_t::E_DFOPeakMemoryUsage) < 100000); |
245 | 253 | }
|
246 | 254 |
|
247 | 255 | void CDataFrameAnalyzerTest::testRunOutlierDetectionPartitioned() {
|
@@ -281,6 +289,13 @@ void CDataFrameAnalyzerTest::testRunOutlierDetectionPartitioned() {
|
281 | 289 | }
|
282 | 290 | }
|
283 | 291 | CPPUNIT_ASSERT(expectedScore == expectedScores.end());
|
| 292 | + |
| 293 | + LOG_DEBUG(<< "number partitions = " |
| 294 | + << core::CProgramCounters::counter(counter_t::E_DFONumberPartitions)); |
| 295 | + LOG_DEBUG(<< "peak memory = " |
| 296 | + << core::CProgramCounters::counter(counter_t::E_DFOPeakMemoryUsage)); |
| 297 | + CPPUNIT_ASSERT(core::CProgramCounters::counter(counter_t::E_DFONumberPartitions) > 1); |
| 298 | + CPPUNIT_ASSERT(core::CProgramCounters::counter(counter_t::E_DFOPeakMemoryUsage) < 110000); // + 10% |
284 | 299 | }
|
285 | 300 |
|
286 | 301 | void CDataFrameAnalyzerTest::testRunOutlierFeatureInfluences() {
|
|
0 commit comments