MCPcopy Create free account
hub / github.com/NanoComp/meep / get_timing_data

Method get_timing_data

src/time.cpp:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218std::unordered_map<time_sink, std::vector<double>, std::hash<int> >
219fields::get_timing_data() const {
220 std::vector<double> all_times = timing_data_vector_from_all(times_spent);
221 const int n_procs = count_processors();
222
223 std::unordered_map<time_sink, std::vector<double>, std::hash<int> > times_by_sink;
224 auto it = all_times.begin();
225 for (const auto &desc_ts : DescriptionByTimeSink) {
226 times_by_sink.emplace(std::make_pair(desc_ts.first, std::vector<double>(it, it + n_procs)));
227 it += n_procs;
228 }
229 return times_by_sink;
230}
231
232} // namespace meep

Callers

nothing calls this directly

Calls 2

count_processorsFunction · 0.85

Tested by

no test coverage detected