1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #19496 from andrey-golubev:master

[G-API] Change memory measurement statistic in Fluid tests

* Change memory measurement statistic in Fluid tests

* Delete irrelevant comment
This commit is contained in:
Andrey Golubev
2021-02-17 17:23:29 +02:00
committed by GitHub
parent 413c056504
commit b50c1ba9e6
+5 -5
View File
@@ -862,11 +862,11 @@ uint64_t currMemoryConsumption()
}
std::string stat_line;
std::getline(proc_stat, stat_line);
uint64_t unused, rss;
// using resident set size
std::istringstream(stat_line) >> unused >> rss;
CV_Assert(rss != 0);
return rss;
uint64_t unused, data_and_stack;
std::istringstream(stat_line) >> unused >> unused >> unused >> unused >> unused
>> data_and_stack;
CV_Assert(data_and_stack != 0);
return data_and_stack;
}
#else
// FIXME: implement this part (at least for Windows?), right now it's enough to check Linux only