Skip to content

Commit 086e151

Browse files
committed
monitoring of libgraal memory usage added
1 parent b17dc16 commit 086e151

File tree

9 files changed

+797
-1
lines changed

9 files changed

+797
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
javac.source=1.7
1+
javac.source=1.8
22
javac.compilerargs=-Xlint -Xlint:-serial
33
license.file=../startup/src/org/graalvm/visualvm/modules/startup/LICENSE.txt
44
nbm.homepage=https://visualvm.github.io

visualvm/graalvm/nbproject/project.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@
1515
<specification-version>2.0</specification-version>
1616
</run-dependency>
1717
</dependency>
18+
<dependency>
19+
<code-name-base>org.graalvm.visualvm.application.views</code-name-base>
20+
<build-prerequisite/>
21+
<compile-dependency/>
22+
<run-dependency>
23+
<release-version>2</release-version>
24+
<specification-version>2.0</specification-version>
25+
</run-dependency>
26+
</dependency>
27+
<dependency>
28+
<code-name-base>org.graalvm.visualvm.charts</code-name-base>
29+
<build-prerequisite/>
30+
<compile-dependency/>
31+
<run-dependency>
32+
<release-version>2</release-version>
33+
<specification-version>2.0</specification-version>
34+
</run-dependency>
35+
</dependency>
1836
<dependency>
1937
<code-name-base>org.graalvm.visualvm.core</code-name-base>
2038
<build-prerequisite/>

visualvm/graalvm/src/org/graalvm/visualvm/graalvm/Installer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
//import org.graalvm.visualvm.core.datasource.descriptor.DataSourceDescriptorFactory;
3030
//import org.graalvm.visualvm.graalvm.application.descriptor.NativeImageApplicationDescriptorProvider;
3131
import org.graalvm.visualvm.graalvm.application.type.GraalVMApplicationTypeFactory;
32+
import org.graalvm.visualvm.graalvm.libgraal.MemorySnapshotViewPluginProvider;
33+
import org.graalvm.visualvm.graalvm.libgraal.MemoryViewPluginProvider;
3234
import org.graalvm.visualvm.graalvm.svm.SVMJvmProvider;
3335
import org.openide.modules.ModuleInstall;
3436

@@ -42,6 +44,8 @@ public void restored() {
4244
// DataSourceDescriptorFactory.getDefault().registerProvider(new NativeImageApplicationDescriptorProvider());
4345

4446
JvmFactory.getDefault().registerProvider(new SVMJvmProvider());
47+
MemorySnapshotViewPluginProvider.initialize();
48+
MemoryViewPluginProvider.initialize();
4549
}
4650

4751
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
5+
# This code is free software; you can redistribute it and/or modify it
6+
# under the terms of the GNU General Public License version 2 only, as
7+
# published by the Free Software Foundation. Oracle designates this
8+
# particular file as subject to the "Classpath" exception as provided
9+
# by Oracle in the LICENSE file that accompanied this code.
10+
#
11+
# This code is distributed in the hope that it will be useful, but WITHOUT
12+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
# version 2 for more details (a copy is included in the LICENSE file that
15+
# accompanied this code).
16+
#
17+
# You should have received a copy of the GNU General Public License version
18+
# 2 along with this work; if not, write to the Free Software Foundation,
19+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+
#
21+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22+
# or visit www.oracle.com if you need additional information or have any
23+
# questions.
24+
25+
# HTML-formatted: <unknown> (&lt; and &gt; must remain!)
26+
LBL_Unknown=&lt;unknown&gt;
27+
28+
29+
LBL_Memory=Memory
30+
31+
LBL_Heap=Heap
32+
33+
34+
LBL_Heap_size=Size
35+
36+
LBL_Used_heap=Used
37+
38+
LBL_Heap_size_leg={0} size
39+
40+
LBL_Used_heap_leg=Used {0}
41+
42+
LBL_Max_Heap=Max

0 commit comments

Comments
 (0)