-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add StatsManager in graphd #1301
Conversation
close #1272 |
@Amber1990Zhang I think we need a doc |
Unit testing passed. |
Unit testing failed. |
Unit testing passed. |
1 similar comment
Unit testing passed. |
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
Unit testing passed. |
Unit testing passed. |
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 suggest that a new base executor class with stats_, for example named StatsBaseExecutor
, should be provided and other subclass type could inherit it when they need some statistics.
class StatsBaseExecutor : public Executor {
public:
StatsBaseExecutor(const char *name) {
stats_ = StatsManager::getStats(name);
}
onError(xx) {
onError(xx, stats_)
}
onFinish() {
onFinish(stats_);
}
protected:
std::unique_ptr<Stats> stats_;
};
Later, we can refactor this implementation.
Unit testing passed. |
1 similar comment
Unit testing passed. |
Unit testing passed. |
relate to #185 |
close #1272