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

Method time_spent_on

python/simulation.py:4622–4631  ·  view source on GitHub ↗

Return a list of times spent by each process for a type of work `time_sink` which is the same as for `mean_time_spent_on`.

(self, time_sink)

Source from the content-addressed store, hash-verified

4620 return self.fields.mean_time_spent_on(time_sink)
4621
4622 def time_spent_on(self, time_sink):
4623 """
4624 Return a list of times spent by each process for a type of work `time_sink` which
4625 is the same as for `mean_time_spent_on`.
4626 """
4627 if self.fields is None:
4628 raise RuntimeError(
4629 "Simulation fields are not initialized. Call init_sim() or run() first."
4630 )
4631 return self.fields.time_spent_on(time_sink)
4632
4633 def get_timing_data(self):
4634 """

Callers 2

test_timing_dataMethod · 0.95
new_from_simulationMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_timing_dataMethod · 0.76