-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore(server): Some memory code updates #5379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5ee2ba1
to
ff39413
Compare
ff39413
to
ab2fc7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm besides a small comment
also please resolve your branch |
Signed-off-by: Vladislav Oleshko <[email protected]>
79bcb74
to
e2b7c1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, check Roman's comment -- I think you removed a call to FetchRssMemory from ReadProcStats
} | ||
} | ||
return false; | ||
return any_of(listeners_.begin(), listeners_.end(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am tempted for the last 2 year to introduce a header algorithm and a function template for each of the most popular standard algorithms:
template<typename C, typename F>
bool any_of(const C& c, F&& f) {
return std::any_of(c.begin(), c.end(), std::forward<F>(f));
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include in a way 🙂
Some of the points from #5378