Skip to content

Real time output #28

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

Merged
merged 4 commits into from
Dec 1, 2021
Merged

Real time output #28

merged 4 commits into from
Dec 1, 2021

Conversation

b-chmiel
Copy link
Contributor

@b-chmiel b-chmiel commented Dec 1, 2021

Add new format oireal
STATUS CODE TIME REAL_TIME NVM MEM SYSC

"openat"});
"openat",
"newfstatat",
"pread64"});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pread64 should go in addInputOutputRules()
newfstatat should be in addFileSystemAccessRules()

verifyTimeUsage();
// TODO Save time usage to OutputBuilder.
auto time = getTimeUsage();
outputBuilder_->setRealTimeMicroseconds(time->realTimeUs);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should double-check this, but IIRC the old "real-cpu" supervisor uses user time, not real time.


std::stringstream ss;
ss << killReasonName(reason) << " " << exitStatus_ << " "
<< milliSecondsElapsed_ << " " << realMilliSecondsElapsed_ << " "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you've added a new field here, but maybe putting realMilliSecondsElapsed in place of either miliSecondsElapsed or that 0ULL below, it'd be easier to adapt sioworkers and oiejq to parse this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I will replace milliSecondsElapsed

@b-chmiel b-chmiel merged commit 369317c into master Dec 1, 2021
@b-chmiel b-chmiel deleted the real-time-output branch December 1, 2021 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants