Inherits from
- HasPrivateTraits: enthought.traits.has_traits.HasPrivateTraits
Attributes
- baseline
Baseline button (to create a new 'baseline' set):
baseline = Button('Baseline')
- baselines
The list of object baselines:
baselines = List(HB_Baseline)
- counts_dclick
Event fired when a 'counts' item is double-clicked:
counts_dclick = Event
- current_change
Total change in the current_counts list:
current_change = Property(depends_on = 'current_counts')
- current_classes
Number of items in the current_counts list:
current_classes = Property(depends_on = 'current_counts')
- current_counts
The current heap statistics table entries:
current_counts = List(HB_ClassCount)
- current_heap
Current heap statistics:
current_heap = Any({ })
- current_ids
The set of all current active object ids:
current_ids = Any(set())
- current_instances
Total number of instances in the current_counts list:
current_instances = Property(depends_on = 'current_counts')
- details
The list of objects which the user has requested detailed information for:
details = List(HB_Detail)
- filter_change
The threshold for the amount of change to display:
filter_change = Int(event = 'heap_updated')
- filter_instances
The threshold for the number of instances to display:
filter_instances = Int(event = 'heap_updated')
- filter_name
The sting that all class names must contain:
filter_name = Str(event = 'heap_updated')
- has_counts
Indicates whether or not the selection set is empty or not:
has_counts = Property
- heap_stats_view
heap_stats_view = View(VSplit(VGroup(HGroup(Item('filter_name', id = 'filter_name', label = 'Name', width = -Const(90), editor = HistoryEditor(auto_set = True)), '_', Item('filter_instances', label = 'Min Instances', width = -Const(36)), '_', Item('filter_change', label = 'Min Change', width = -Const(36)), '_', spring, '_', Item('current_classes', label = 'Classes', style = 'readonly', format_func = commatize, width = -Const(35)), '_', Item('current_instances', label = 'Instances', style = 'readonly', format_func = commatize, width = -Const(50)), '_', Item('current_change', label = 'Change', style = 'readonly', format_func = commatize, width = -Const(50))), Item('current_counts', id = 'current_counts', editor = counts_table_editor), '_', HGroup(Item('refresh', tooltip = 'Refresh the heap statistics'), Item('baseline', tooltip = 'Create a new baseline set'), spring, Item('hide_selected', tooltip = 'Remove all selected items from the view', enabled_when = 'has_counts'), Item('show_selected', tooltip = 'Show only the selected items in the view', enabled_when = 'has_counts'), Item('show_all', tooltip = 'Show all items again', enabled_when = '(len( ignored_classes ) > 0) or (len( shown_classes ) > 0)'), '_', Item('show_details', tooltip = 'Show the instances of the selected classes', enabled_when = 'has_counts'), show_labels = False), label = 'Heap', show_labels = False, dock = 'tab'), Item('details', id = 'details', style = 'custom', dock = 'tab', editor = ListEditor(use_notebook = True, deletable = True, dock_style = 'tab', export = 'DockWindowShell', page_name = '.short_name')), Item('referrers', id = 'referrers', style = 'custom', dock = 'tab', editor = ListEditor(use_notebook = True, deletable = True, dock_style = 'tab', export = 'DockWindowShell', page_name = '.name')), Item('baselines', id = 'baselines', style = 'custom', dock = 'tab', editor = ListEditor(use_notebook = True, deletable = True, dock_style = 'tab', export = 'DockWindowShell', page_name = 'Baseline')), id = 'splitter', show_labels = False), title = 'Heap Browser', id = 'enthought.developer.tools.heap_browser.HB_HeapBrowser', width = 0.5, height = 0.75, resizable = True, key_bindings = heap_browser_key_bindings)
- heap_updated
Event fired when anything changes that affects the heap statistics view:
heap_updated = Event
- hide_selected
Hide all selected items button:
hide_selected = Button('Hide Selected')
- ignored_classes
The list of object classes currently being ignored:
ignored_classes = Any(set())
- name
The name of the plugin:
name = Str('Heap Browser')
- previous_heap
Previous heap statistics:
previous_heap = Any({ })
- referrers
The list of object referrer trees:
referrers = List(HB_Referrers)
- refresh
Refresh button:
refresh = Button('Refresh')
- selected_counts
The list of currently selected counts:
selected_counts = List(HB_ClassCount)
- show_all
Show all items button:
show_all = Button('Show All')
- show_details
Show the details of the current selected items button:
show_details = Button('Show Details')
- show_selected
Show only the selected items button:
show_selected = Button('Show Selected')
- shown_classes
The list of object classes currently being shown:
shown_classes = Any(set())
Inherited from base classes
Method summary
- update(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- update(self)
Updates the heap statistics.