pyleecan.Methods.Output.Output.print_memory module

print_memory(self, tab_level=0, detail_level=1, is_print=True)[source]

Print an estimation of the memory usage for each property of the object

Parameters:
  • self (Output) – An Output object

  • tab_level (int) – Number of tab (” “) to add before each line

  • detail_level (int) – Select how many data to display (0: only object size, 1: object + properties, 2:object + detailed properties)

  • is_print (bool) – True print, else return str

Returns:

mem_str – if is_print == False, return the string that descibe the memory usage of the object

Return type:

str

detail_prop(self, prop_name, tab_level=1)[source]

Detail the content of the property