-
Notifications
You must be signed in to change notification settings - Fork 159
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
[record-hessian] Introduce RecordHessian. #14295
base: master
Are you sure you want to change the base?
Conversation
8591d2e
to
e416acd
Compare
Your current commit title/message is
which doesn't seem to express current changes. |
@seanshpark I tried splitting the code into smaller parts, but nncc-common does not allow me to compile if there are unused variables or unimplemented functions. So, could you review my code in this form? |
you can solve this. |
This commit introduce record hessian. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
Delete unused variables and lines. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
Apply feed back, make comment more precise. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
Add maybe_unused mark to avoid compile error. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
Fix formatting error due to comments. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
Fix formatting error with nnas_format. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
you have useless header file and uncalled methods. |
I split the code. That method will be implemented in later PR! //namespace record_hessian |
Remove useless headers and add comments ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
@seanshpark I've modified the way what you said. PTAL:)
|
What I expect class RecordHessian
{
public:
RecordHessian() {}
void initialize(luci::Module *module);
} and cpp with implementation. Your code is as-is two weeks before without any change. |
Update code commits to add initialize function first. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
I thought I should start by sharing small parts of the code and waited for a review. However, I understood that I should share it based on the bigger parts(e.g. initialize), so I uploaded the code accordingly. |
auto interpreter = std::make_unique<luci_interpreter::Interpreter>(module); | ||
auto observer = std::make_unique<HessianObserver>(); | ||
|
||
interpreter->attachObserver(observer.get()); | ||
|
||
_observer = std::move(observer); | ||
_interpreter = std::move(interpreter); |
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.
is there particular reason to use local variable for creation and move to members?
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.
These two lines of code was added to implement profileData with multithreading, but it seems redundant now, so it would be better to remove it.
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.
@seanshpark I've modified the way what you said. PTAL:)
Remove redundant code lines and add two space. ONE-DCO-1.0-Signed-off-by: Banseok Lee <[email protected]>
This introduces a part of RecordHessian.
ONE-DCO-1.0-Signed-off-by: Banseok Lee [email protected]
Related Issue : #13480
Draft PR: #13585