Peach :: Agent :: memory :: Memory :: Class Memory
[hide private]

Class Memory

source code


Agent that monitors the amount of memory a process is utilizing. This is useful for detecting memory leaks within the fuzzing target

Instance Methods [hide private]
 
__init__(self, args)
Constructor.
source code
 
_OpenProcess(self, pid=None) source code
 
_CloseProcess(self, handle=None) source code
 
_GetProcessIdByName(self, name)
Try and get pid for a process by name.
source code
 
_GetProcessMemoryInfo(self, handle=None) source code
 
OnTestStarting(self)
Called right before start of test case or variation
source code
 
OnTestFinished(self)
Called right after a test case or varation
source code
 
GetMonitorData(self)
Get any monitored data from a test case.
source code
 
DetectedFault(self)
Check if a fault was detected.
source code
 
OnFault(self)
Called when a fault was detected.
source code
 
OnShutdown(self)
Called when Agent is shutting down, typically at end of a test run or when a Stop-Run occurs
source code
 
StopRun(self)
Return True to force test run to fail.
source code
Method Details [hide private]

__init__(self, args)
(Constructor)

source code 

Constructor. Arguments are supplied via the Peach XML file.

Parameters:
  • args (Dictionary) - Dictionary of parameters
Overrides: agent.Monitor.__init__

OnTestStarting(self)

source code 

Called right before start of test case or variation

Overrides: agent.Monitor.OnTestStarting

OnTestFinished(self)

source code 

Called right after a test case or varation

Overrides: agent.Monitor.OnTestFinished

GetMonitorData(self)

source code 

Get any monitored data from a test case.

Overrides: agent.Monitor.GetMonitorData

DetectedFault(self)

source code 

Check if a fault was detected.

Overrides: agent.Monitor.DetectedFault

OnFault(self)

source code 

Called when a fault was detected.

Overrides: agent.Monitor.OnFault

OnShutdown(self)

source code 

Called when Agent is shutting down, typically at end of a test run or when a Stop-Run occurs

Overrides: agent.Monitor.OnShutdown

StopRun(self)

source code 

Return True to force test run to fail. This should return True if an unrecoverable error occurs.

Overrides: agent.Monitor.StopRun