Package mvpa :: Package base :: Module verbosity
[hide private]
[frames] | no frames]

Module verbosity

source code

Verbose output and debugging facility

Examples: from verbosity import verbose, debug; debug.active = [1,2,3]; debug(1, "blah")

Classes [hide private]
  Logger
Base class to provide logging
  LevelLogger
Logger which prints based on level -- ie everything which is smaller than specified level
  OnceLogger
Logger which prints a message for a given ID just once.
  SetLogger
Logger which prints based on defined sets identified by Id.
  TraceBack
  RelativeTime
Simple helper class to provide relative time it took from previous invocation
  DebugLogger
Logger for debugging purposes.
Functions [hide private]
 
parseStatus(field='VmSize')
Return stat information on current process.
source code
 
mbasename(s)
Custom function to include directory name if filename is too common
source code

Imports: stdout, stderr, os, re, traceback, time, getpid, basename, dirname


Function Details [hide private]

parseStatus(field='VmSize')

source code 

Return stat information on current process.

Usually it is needed to know where the memory is gone, that is why VmSize is the default for the field to spit out TODO: Spit out multiple fields. Use some better way than parsing proc

mbasename(s)

source code 

Custom function to include directory name if filename is too common

Also strip .py at the end