-
Notifications
You must be signed in to change notification settings - Fork 41
[WIP] Add memory measurements to interpreted PyROOT #95
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
Improve memory measurements for ROOT interpreter benchmark
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 is a partial review.
lib/MemoryMeasurement.cxx
Outdated
#include <unistd.h> | ||
#include <chrono> | ||
#include <stdlib.h> | ||
#include "rootbench/RBConfig.h" |
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.
Includes should be in reverse order, that is, less generic to more generic.
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.
Thanks! I will change the order.
lib/MemoryMeasurement.cxx
Outdated
|
||
std::string getMemoryStats(const std::string& dir, const std::string& filename, std::string& rootInvocation, const std::string& rootexe, const std::string& endInvoc) { | ||
std::string perffile=""; | ||
if (access("/usr/bin/time", X_OK) == 0) { |
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.
We should not hardcode this path /usr/bin/time
, we should use a more standard way to resolve a system binary.
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.
alright! I will try to change it.
lib/MemoryMeasurement.cxx
Outdated
// FIXME: no source in /usr/dash | ||
// We are writing /usr/bin/time -v output in file to get maximum resident memory for the benchmark | ||
rootInvocation = "/usr/bin/time -v -o \"" + perffile + rootexe + fullpath + endInvoc; | ||
std::cout<<"helllloooooooooooooooooooo "<< rootInvocation <<" hellllllloooooooooooooo"<<std::endl; |
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.
Looks like debug printouts.
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.
Yes sorry, forgot to remove them.
Closing in favor of #190 |
Improve memory measurements for ROOT interpreter benchmark