-
Notifications
You must be signed in to change notification settings - Fork 477
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
Code refactor #408
base: master
Are you sure you want to change the base?
Code refactor #408
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ double getAverageUncoreFrequencyGhz(const UncoreStateType& before, const UncoreS | |
return getAverageUncoreFrequency(before, after) / 1e9; | ||
} | ||
|
||
void print_help(const string prog_name) | ||
void print_help(const string & progname) | ||
{ | ||
cerr << "\n Usage: \n " << progname | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you merge this change into the previous change? I would like each change to compile on its own and it is clear that this cannot compile on its own and needs both changes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here. Please keep the old name. |
||
<< " --help | [delay] [options] [-- external_program [external_program_options]]\n"; | ||
|
@@ -554,13 +554,13 @@ void print_basic_metrics_csv_header(const PCM * m) | |
cout << "Frontend_bound(%),Bad_Speculation(%),Backend_Bound(%),Retiring(%),"; | ||
} | ||
|
||
void print_csv_header_helper(string header, int count=1){ | ||
void print_csv_header_helper(const string & header, int count=1){ | ||
for(int i = 0; i < count; i++){ | ||
cout << header << ","; | ||
} | ||
} | ||
|
||
void print_basic_metrics_csv_semicolons(const PCM * m, string header) | ||
void print_basic_metrics_csv_semicolons(const PCM * m, const string & header) | ||
{ | ||
print_csv_header_helper(header, 3); // EXEC;IPC;FREQ; | ||
if (m->isActiveRelativeFrequencyAvailable()) | ||
|
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.
Can you merge this change into the previous change? I would like each change to compile on its own and it is clear that this cannot compile on its own and needs both changes
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.
the change of the parameter name is not necessary and requires changing the name in other code lines. Could you please keep the old name?