fipy.tools.performance package

Submodules

fipy.tools.performance.efficiencyTestGenerator module

fipy.tools.performance.efficiencyTestHistory module

fipy.tools.performance.efficiency_test module

class fipy.tools.performance.efficiency_test.Efficiency_test(dist, **kw)

Bases: setuptools.Command

Construct the command for dist, updating vars(self) with any keyword parameters.

__module__ = 'fipy.tools.performance.efficiency_test'
description = 'run FiPy efficiency tests'
finalize_options()
initialize_options()
run()
user_options = [('minimumelements=', None, 'minimum number of elements'), ('factor=', None, 'factor by which the number of elements is increased'), ('inline', None, 'turn on inlining for the efficiency tests'), ('cache', None, 'turn on variable caching'), ('maximumelements=', None, 'maximum number of elements'), ('sampleTime=', None, 'sampling interval for memory high-water'), ('path=', None, 'directory to place output results in'), ('uploadToCodespeed', None, 'flag to upload data to Codespeed'), ('otherExample=', None, 'designate examples other than the default ones to benchmark'), ('newElements=', None, 'alter the number of elements. NB: will not work on all examples'), ('revisionNumber=', None, 'generate history of example(s) from given revision number')]

fipy.tools.performance.memoryLeak module

This python script is ripped from http://www.nightmare.com/medusa/memory-leaks.html

It outputs the top 100 number of outstanding references for each object.

fipy.tools.performance.memoryLogger module

class fipy.tools.performance.memoryLogger.MemoryHighWaterThread(pid, sampleTime=1)

Bases: threading.Thread

__init__(pid, sampleTime=1)

This constructor should always be called with keyword arguments. Arguments are:

group should be None; reserved for future extension when a ThreadGroup class is implemented.

target is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called.

name is the thread name. By default, a unique name is constructed of the form “Thread-N” where N is a small decimal number.

args is the argument tuple for the target invocation. Defaults to ().

kwargs is a dictionary of keyword arguments for the target invocation. Defaults to {}.

If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread.

__module__ = 'fipy.tools.performance.memoryLogger'
run()

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

stop()
class fipy.tools.performance.memoryLogger.MemoryLogger(sampleTime=1)
__del__()
__init__(sampleTime=1)
__module__ = 'fipy.tools.performance.memoryLogger'
start()
stop()

fipy.tools.performance.memoryUsage module

This python script is ripped from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222/index_txt

Module contents

Last updated on Jan 28, 2020. Created using Sphinx 1.8.5.