-
Notifications
You must be signed in to change notification settings - Fork 41
Add buffer size configuration for reportinglib #132
Conversation
jorblancoa
commented
Feb 15, 2019
- Read buffer size from neurodamus report.conf file
- Read buffer size from report.conf file
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.
Merge this after merging neurodamus & reporting lib PR.
@jorblancoa : looks good. one related thing : there is an existing command line option to change number of buffered steps:
can you change this option to |
void set_report_buffer_size(int n) { | ||
size_report_buffer = n; | ||
#ifdef ENABLE_REPORTING | ||
records_set_max_buffer_size_hint(size_report_buffer); |
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.
records_set_max_buffer_size_hint(size_report_buffer); | |
records_set_max_buffer_size_hint(size_report_buffer); |
sscanf(raw_line, "\n%s %s %s %s %s %s %d %lf %lf %lf %d\n", report.name, report.target_name, | ||
report.buffer_size = 4; //default size to 4 Mb | ||
fgets(raw_line, MAX_FILEPATH_LEN, fp); | ||
sscanf(raw_line, "\n%s %s %s %s %s %s %d %lf %lf %lf %d %d\n", report.name, report.target_name, |
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.
sscanf(raw_line, "\n%s %s %s %s %s %s %d %lf %lf %lf %d %d\n", report.name, report.target_name, | |
sscanf(raw_line, "\n%s %s %s %s %s %s %d %lf %lf %lf %d %d\n", report.name, report.target_name, |
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.
A couple of lines here got indented with tabs...
- report-buffer-size option with default of 4MB - Use command line buffer size if not default, otherwise use config file - Added aux method to check if the value of the command line is the default one - Fix identation issues
d31fbbc
to
fc4f2de
Compare
- Add buffer size configuration for reportinglib - Read buffer size from report.conf file - Add command line option for the report buffer size (4MB as default)
) - Add buffer size configuration for reportinglib - Read buffer size from report.conf file - Add command line option for the report buffer size (4MB as default) CoreNEURON Repo SHA: BlueBrain/CoreNeuron@680749a