
from pikos.monitor import Monitor

def baserecorder(filter_=None):
    """ Factory function that returns a basic recorder.
    """
    import sys
    from pikos.recorders.text_stream_recorder import TextStreamRecorder
    return TextStreamRecorder(sys.stdout, filter_=filter_, auto_flush=True)

def monitor_functions(filter_=None):
    """ Factory function that returns a basic function monitor.
    """
    from pikos.monitors.function_monitor import FunctionMonitor
    return Monitor(FunctionMonitor(baserecorder(filter_=filter_)))

def monitor_lines(filter_=None):
    """ Factory function that returns a basic line monitor.
    """
    from pikos.monitors.line_monitor import LineMonitor
    return Monitor(LineMonitor(baserecorder(filter_=filter_)))

def memory_on_functions(filter_=None):
    """ Factory function that returns a basic line monitor.
    """
    from pikos.monitors.function_memory_monitor import FunctionMemoryMonitor
    return Monitor(FunctionMemoryMonitor(baserecorder(filter_=filter_)))

def memory_on_lines(filter_=None):
    """ Factory function that returns a basic line monitor.
    """
    from pikos.monitors.line_memory_monitor import LineMemoryMonitor
    return Monitor(LineMemoryMonitor(baserecorder(filter_=filter_)))

#: Easy to find placeholder for the Monitor decorator class.
monitor = Monitor

@@ -828,36 +828,47 @@
 returns a basic 
-line
+function memory
  monitor.%0A    %22%22
@@ -1098,32 +1098,39 @@
 ns a basic line 
+memory 
 monitor.%0A    %22%22%22
@@ -1191,32 +1191,32 @@
 neMemoryMonitor%0A
-
     return Monit
@@ -1269,16 +1269,219 @@
 er_)))%0A%0A
+def yappi_monitor(buildins=None):%0A    %22%22%22 Factory function that returns a yappi monitor.%0A    %22%22%22%0A    from pikos.external.yappi_profiler import YappiProfiler%0A    return Monitor(YappiProfiler(buildins))%0A%0A%0A
 #: Easy 

Add a basic yappi_monitor to the main pikos api file