DescriptionPyauto remote inspector module now provides garbage collect functionality.
Previously, the pyauto remote inspector module only allowed a test to take
a v8 heap snapshot, as follows:
import perf_snapshot
snapshotter = perf_snapshot.PerformanceSnapshotter()
snapshot = snapshotter.HeapSnapshot()
With this change, the same object now provides the GarbageCollect() function,
which forces a garbage collection:
import perf_snapshot
snapshotter = perf_snapshot.PerformanceSnapshotter()
snapshot = snapshotter.GarbageCollect()
Refactoring of perf_snapshot.py still needs to be done to make it more
general (useful for various kinds of interaction with the remote inspector).
This CL includes a portion of this refactoring: I separated the
_PerformanceSnapshotterThread class into 2 classes: a base class called
_RemoteInspectorBaseThread, and a subclass called
_PerformanceSnapshotterThread. There is a new subclass called
_GarbageCollectThread to implement the garbage collection functionality.
In a future CL, I intend to do some additional refactoring of comments
and organization of the code, and also change the name of the file itself.
BUG=chromium-os:23962
TEST=None
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114510
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressed review comments. #Messages
Total messages: 3 (0 generated)
|