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

# Copyright 2013 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.core.exceptions
json

 
Classes
       
__builtin__.object
InspectorMemory
telemetry.core.exceptions.Error(exceptions.Exception)
InspectorMemoryException

 
class InspectorMemory(__builtin__.object)
    Communicates with the remote inspector's Memory domain.
 
  Methods defined here:
GetDOMCounters(self, timeout)
Retrieves DOM element counts.
 
Args:
  timeout: The number of seconds to wait for the inspector backend to
      service the request before timing out.
 
Returns:
  A dictionary containing the counts associated with "nodes", "documents",
  and "jsEventListeners".
Raises:
  InspectorMemoryException
  websocket.WebSocketException
  socket.error
  exceptions.WebSocketDisconnected
__init__(self, inspector_websocket)

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

 
class InspectorMemoryException(telemetry.core.exceptions.Error)
    
Method resolution order:
InspectorMemoryException
telemetry.core.exceptions.Error
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods inherited from telemetry.core.exceptions.Error:
AddDebuggingMessage(self, msg)
Adds a message to the description of the exception.
 
Many Telemetry exceptions arise from failures in another application. These
failures are difficult to pinpoint. This method allows Telemetry classes to
append useful debugging information to the exception. This method also logs
information about the location from where it was called.
__init__(self, msg='')
__str__(self)

Data descriptors inherited from telemetry.core.exceptions.Error:
__weakref__
list of weak references to the object (if defined)

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__(...)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message