Open hlokavarapu opened 7 years ago
That is one possibility. Another would be a function
std::map<std::string,double> get_summary_data (const Kind kind) const;
that for Kind in {total_cpu_time,total_wall_time,n_calls}
returns the requested map. I think we already have an enum like Kind
in that class.
This has the advantage that it doesn't export the internal data structures, and would probably be good enough for the purpose you have here.
Pull request for Deal.II providing suggested function generated at dealii/dealii#4369.
That's awesome, thanks @class4kayaker .
Write a postprocessor that will append the timing summary of a given run to the statistics file. This will be convenient in terms of running a data processing program that directly computes on top of the statistics file, as opposed to writing an external script to pull out the timing information from the screen-output (&/ log.txt).
After talking to Rene, he suggested adding an extra function to deal.II class TimerOutput that returns a const reference of the private data structure,
Given this reference, then a postprocessor can be added to Aspect that then appends every key as a column to statistics and one of the values of the struct Section
@bangerth , is this a reasonable method of setting up this functionality? Will this be resourceful for the community?