telemetry.internal.backends.chrome_inspector.memory_backend
index
telemetry/internal/backends/chrome_inspector/memory_backend.py

# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
telemetry.internal.backends.chrome_inspector.inspector_websocket
json
logging
socket
traceback
telemetry.internal.backends.chrome_inspector.websocket

 
Classes
       
__builtin__.object
MemoryBackend
exceptions.Exception(exceptions.BaseException)
MemoryTimeoutException
MemoryUnexpectedResponseException
MemoryUnrecoverableException

 
class MemoryBackend(__builtin__.object)
     Methods defined here:
Close(self)
SetMemoryPressureNotificationsSuppressed(self, suppressed, timeout=30)
Enable/disable suppressing memory pressure notifications.
 
Args:
  suppressed: If true, memory pressure notifications will be suppressed.
  timeout: The timeout in seconds.
 
Raises:
  MemoryTimeoutException: If more than |timeout| seconds has passed
  since the last time any data is received.
  MemoryUnrecoverableException: If there is a websocket error.
  MemoryUnexpectedResponseException: If the response contains an error
  or does not contain the expected result.
SimulateMemoryPressureNotification(self, pressure_level, timeout=30)
Simulate a memory pressure notification.
 
Args:
  pressure level: The memory pressure level of the notification ('moderate'
      or 'critical').
  timeout: The timeout in seconds.
 
Raises:
  MemoryTimeoutException: If more than |timeout| seconds has passed
  since the last time any data is received.
  MemoryUnrecoverableException: If there is a websocket error.
  MemoryUnexpectedResponseException: If the response contains an error
  or does not contain the expected result.
__init__(self, inspector_socket)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MemoryTimeoutException(exceptions.Exception)
    
Method resolution order:
MemoryTimeoutException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class MemoryUnexpectedResponseException(exceptions.Exception)
    
Method resolution order:
MemoryUnexpectedResponseException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class MemoryUnrecoverableException(exceptions.Exception)
    
Method resolution order:
MemoryUnrecoverableException
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message