spinn_front_end_common.interface.profiling package¶
Module contents¶
-
class
spinn_front_end_common.interface.profiling.
AbstractHasProfileData
[source]¶ Bases:
object
Indicates a
MachineVertex
that can record a profile.-
get_profile_data
(placement)[source]¶ Get the profile data recorded during simulation.
Parameters: placement (Placement) – Return type: ProfileData
-
-
class
spinn_front_end_common.interface.profiling.
ProfileData
(tag_labels)[source]¶ Bases:
object
A container for profile data.
Parameters: tag_labels (list(str)) – A list of labels indexed by tag ID -
DURATION
= 1¶
-
START_TIME
= 0¶
-
add_data
(data)[source]¶ Add profiling data read from the profile section.
Parameters: data (bytearray) – Data read from the profile section on the machine
-
get_mean_ms
(tag)[source]¶ Get the mean time in milliseconds spent on operations with the given tag.
Parameters: tag (str) – The tag to get the mean time for Return type: float
-
get_mean_ms_per_ts
(tag)[source]¶ Get the mean time in milliseconds spent on operations with the given tag per timestep.
Parameters: tag (str) – The tag to get the data for Return type: float
-
get_mean_n_calls_per_ts
(tag)[source]¶ Get the mean number of times the given tag was recorded per timestep.
Parameters: tag (str) – The tag to get the data for Return type: float
-