Source code for blacs.plugins.memory

#####################################################################
#                                                                   #
# /plugins/memory/__init__.py                                       #
#                                                                   #
# Copyright 2013, Monash University                                 #
#                                                                   #
# This file is part of the program BLACS, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################
import os
import logging
import gc
from blacs import BLACS_DIR
from labscript_utils import memprof

FILEPATH_COLUMN = 0
name = "Memory Profile"
module = "memory" # should be folder name
logger = logging.getLogger('BLACS.plugin.%s'%module)

[docs] class Plugin(object):
[docs] def __init__(self,initial_settings): self.menu = None self.notifications = {} self.initial_settings = initial_settings self.BLACS = None
[docs] def get_menu_class(self): return Menu
[docs] def get_notification_classes(self): return []
[docs] def get_setting_classes(self): return []
[docs] def get_callbacks(self): {}
[docs] def set_menu_instance(self,menu): self.menu = menu
[docs] def set_notification_instances(self,notifications): pass
[docs] def plugin_setup_complete(self, BLACS): self.BLACS = BLACS
[docs] def get_save_data(self): return {}
[docs] def close(self): pass