-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ML] Format memory instrumentation output #1022
Conversation
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.
This basically LGTM. My one notable comment is I think we could make the test slightly more robust with a small change.
this->writeMemory(step); | ||
// this->writeProgress(step); | ||
int64_t timestamp = core::CTimeUtils::toEpochMs(core::CTimeUtils::now()); | ||
this->writeMemory(timestamp); |
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.
nit: use std::int64_t, or how about just this->writeMemory(core::CTimeUtils::toEpochMs(core::CTimeUtils::now());
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 will have to write the time stamp into analysis object as well. Thus, I prefer to keep it as a variable.
} | ||
|
||
void CDataFrameAnalysisInstrumentation::writeState(std::uint32_t step) { | ||
this->writeProgress(step); | ||
this->writeMemory(step); | ||
// this->writeProgress(step); |
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 a bit confused with this commented out line. Will progress be written out from here instead of CDataFrameAnalyzer
?
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.
LGTM2 I opened elastic/elasticsearch#52778 which is a prerequisite for this PR to be merged
This is ready to be merged now from the java side. |
run tests |
run elasticsearch-ci |
retest |
This PR activates memory instrumentation and formats it according to the specified JSON format.