Skip to content

Commit

Permalink
Profiler improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Sedlacek authored and Jaroslav Tulach committed Jan 31, 2018
1 parent 349ac7e commit f88b86f
Show file tree
Hide file tree
Showing 121 changed files with 3,467 additions and 936 deletions.
2 changes: 1 addition & 1 deletion debugger.jpda.heapwalk/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.103</specification-version>
<specification-version>1.105</specification-version>
</run-dependency>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ public Iterator getAllInstancesIterator() {
return Collections.emptyIterator();
}

@Override
public boolean isRetainedSizeComputed() {
return true;
}

@Override
public boolean isRetainedSizeByClassComputed() {
return true;
}

private static class InstancesIterator implements Iterator {

private Iterator clsIt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@ public List<Instance> getValues() {
return instances;
}

@Override
public List getItems() {
throw new UnsupportedOperationException("Not supported yet.");
}

}
2 changes: 1 addition & 1 deletion lib.profiler.common/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.lib.profiler.common/1
OpenIDE-Module-Localizing-Bundle: org/netbeans/lib/profiler/common/Bundle.properties
OpenIDE-Module-Specification-Version: 1.47
OpenIDE-Module-Specification-Version: 1.48
OpenIDE-Module-Needs: org.netbeans.lib.profiler.common.Profiler

1 change: 1 addition & 0 deletions lib.profiler.common/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</module-dependencies>
<friend-packages>
<friend>com.sun.tools.visualvm.core</friend>
<friend>com.sun.tools.visualvm.modules.appui</friend>
<friend>com.sun.tools.visualvm.profiler</friend>
<friend>com.sun.tools.visualvm.profiling</friend>
<friend>com.sun.tools.visualvm.sampler</friend>
Expand Down
2 changes: 1 addition & 1 deletion lib.profiler.ui/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.lib.profiler.ui/1
OpenIDE-Module-Localizing-Bundle: org/netbeans/lib/profiler/ui/Bundle.properties
OpenIDE-Module-Specification-Version: 1.137
OpenIDE-Module-Specification-Version: 1.147

7 changes: 6 additions & 1 deletion lib.profiler.ui/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.97</specification-version>
<specification-version>1.106</specification-version>
</run-dependency>
</dependency>
<dependency>
Expand Down Expand Up @@ -82,7 +82,12 @@
<friend-packages>
<friend>com.sun.tools.visualvm.application.views</friend>
<friend>com.sun.tools.visualvm.coredump</friend>
<friend>com.sun.tools.visualvm.heapviewer</friend>
<friend>com.sun.tools.visualvm.heapviewer.console</friend>
<friend>com.sun.tools.visualvm.heapviewer.truffle</friend>
<friend>com.sun.tools.visualvm.modules.appui</friend>
<friend>com.sun.tools.visualvm.profiler</friend>
<friend>com.sun.tools.visualvm.profiling</friend>
<friend>com.sun.tools.visualvm.sampler</friend>
<friend>com.sun.tools.visualvm.uisupport</friend>
<friend>oracle.jdevimpl.profiler.impl</friend>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.lib.profiler.ui;

import javax.swing.JPanel;
import org.openide.util.Lookup;

/** Allows to control UI customizations by the NetBeans IDE, etc.
*
* @since 1.147
*/
public class AppearanceController {
private static final AppearanceController DEFAULT;
static {
AppearanceController ac = Lookup.getDefault().lookup(AppearanceController.class);
DEFAULT = ac == null ? new AppearanceController() : ac;
}

public static AppearanceController getDefault() {
return DEFAULT;
}

public void customizeProfilerTableContainer(JPanel p) {
}

public void customizeLiveFlatProfilePanel(JPanel p) {
}

public void customizeThreadPanel(JPanel p) {
}

public boolean isAddToRootsVisible() {
return true;
}

public int[] invisibleLivenessResultsColumns() {
return new int[] { 7 };
}
}
Loading

0 comments on commit f88b86f

Please sign in to comment.