function test()
{
- WebInspector.showPanel("profiles");
+ WebInspector.inspectorView.showPanel("profiles");
var heapProfileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotProfileType;
heapProfileType.addEventListener(WebInspector.HeapSnapshotProfileType.SnapshotReceived, finishHeapSnapshot);
InspectorTest.addSniffer(heapProfileType, "_snapshotReceived", snapshotReceived);
function didGetObjectByHeapObjectId(error, object)
{
if (!error)
- remoteObjects.push(WebInspector.RemoteObject.fromPayload(object));
+ remoteObjects.push(WebInspector.runtimeModel.createRemoteObject(object));
if (++resolvedObjectsCount === bodyWrapperIds.length)
requestPropertiesOfResolvedObjects();