cjcchen commented on code in PR #170:
URL:
https://github.com/apache/incubator-resilientdb/pull/170#discussion_r1966298441
##########
platform/statistic/stats.cpp:
##########
@@ -96,6 +96,30 @@ Stats::~Stats() {
}
}
+long getRSS() {
+ long rss = 0;
+ FILE* fp = NULL;
+ if ((fp = fopen("/proc/self/statm", "r")) == NULL) {
+ return 0;
+ }
+
+ unsigned long size, resident, share, text, lib, data, dt;
Review Comment:
let's use int64_t and uint64_t other than long and unsigned long.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]