microprobe.code.benchmark.BuildingBlock¶
-
class
BuildingBlock
[source]¶ Bases:
object
Class to represent a benchmark building block.
Class to represent a benchmark building block. The different building blocks of a benchmark such as function, basic blocks, loops, etc. should inherit from this class.
Methods
__init__
()add_info
(message)Add an information message to the building block. add_pass_info
(message)Add an pass information message to the building block. add_requirement
(message)Add an requirement message to the building block. add_warning
(message)Add a warning message to the building block. Attributes
info
List of information messages of the building block ( list
ofstr
)pass_info
List of information pass messages of the building block ( list
ofstr
)requirements
List of requirement messages of the building block ( list
ofstr
)warnings
List of warnings of the building block
-
add_warning
(message)[source]¶ Add a warning message to the building block.
Parameters: message ( str
) – Warning message
-
warnings
¶ List of warnings of the building block
List of warnings of the building block (
list
ofstr
)
-
add_pass_info
(message)[source]¶ Add an pass information message to the building block.
Parameters: message ( str
) – Information pass message
-
add_info
(message)[source]¶ Add an information message to the building block.
Parameters: message ( str
) – Information message
-