Skip to content

Commit b50c1ba

Browse files
Merge pull request opencv#19496 from andrey-golubev:master
[G-API] Change memory measurement statistic in Fluid tests * Change memory measurement statistic in Fluid tests * Delete irrelevant comment
1 parent 413c056 commit b50c1ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/gapi/test/gapi_fluid_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,11 @@ uint64_t currMemoryConsumption()
862862
}
863863
std::string stat_line;
864864
std::getline(proc_stat, stat_line);
865-
uint64_t unused, rss;
866-
// using resident set size
867-
std::istringstream(stat_line) >> unused >> rss;
868-
CV_Assert(rss != 0);
869-
return rss;
865+
uint64_t unused, data_and_stack;
866+
std::istringstream(stat_line) >> unused >> unused >> unused >> unused >> unused
867+
>> data_and_stack;
868+
CV_Assert(data_and_stack != 0);
869+
return data_and_stack;
870870
}
871871
#else
872872
// FIXME: implement this part (at least for Windows?), right now it's enough to check Linux only

0 commit comments

Comments
 (0)