Skip to content

Commit 2d13837

Browse files
committed
GH-363 use JFR streaming to implement exact thread state monitoring
1 parent 4538bc8 commit 2d13837

File tree

21 files changed

+626
-7
lines changed

21 files changed

+626
-7
lines changed

plugins/jfr.streaming/build.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
3+
<!-- for some information on what you could do (e.g. targets to override). -->
4+
<!-- If you delete this file and reopen the project it will be recreated. -->
5+
<project name="org.graalvm.visualvm.jfr.streaming" default="netbeans" basedir=".">
6+
<description>Builds, tests, and runs the project org.graalvm.visualvm.jfr.streaming.</description>
7+
<import file="nbproject/build-impl.xml"/>
8+
</project>

plugins/jfr.streaming/manifest.mf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Manifest-Version: 1.0
2+
AutoUpdate-Show-In-Client: true
3+
OpenIDE-Module: org.graalvm.visualvm.jfr.streaming
4+
OpenIDE-Module-Java-Dependencies: Java > 17
5+
OpenIDE-Module-Localizing-Bundle: org/graalvm/visualvm/jfr/streaming/Bundle.properties
6+
OpenIDE-Module-Specification-Version: 1.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
*** GENERATED FROM project.xml - DO NOT EDIT ***
4+
*** EDIT ../build.xml INSTEAD ***
5+
-->
6+
<project name="org.graalvm.visualvm.jfr.streaming-impl" basedir="..">
7+
<property file="nbproject/private/suite-private.properties"/>
8+
<property file="nbproject/suite.properties"/>
9+
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
10+
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
11+
<property file="${suite.dir}/nbproject/platform.properties"/>
12+
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
13+
<attribute name="name"/>
14+
<attribute name="value"/>
15+
<sequential>
16+
<property name="@{name}" value="${@{value}}"/>
17+
</sequential>
18+
</macrodef>
19+
<property file="${user.properties.file}"/>
20+
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
21+
<nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
22+
<fail message="You must define 'nbplatform.${nbplatform.active}.harness.dir'">
23+
<condition>
24+
<not>
25+
<available file="${harness.dir}" type="dir"/>
26+
</not>
27+
</condition>
28+
</fail>
29+
<import file="${harness.dir}/build.xml"/>
30+
</project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.xml.data.CRC32=1ba7908e
2+
build.xml.script.CRC32=c2718227
3+
build.xml.stylesheet.CRC32=[email protected]
4+
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5+
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6+
nbproject/build-impl.xml.data.CRC32=1ba7908e
7+
nbproject/build-impl.xml.script.CRC32=dc0dd611
8+
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
is.eager=true
2+
javac.compilerargs=-Xlint -Xlint:-serial
3+
javac.source=17
4+
license.file=../../visualvm/startup/src/org/graalvm/visualvm/modules/startup/LICENSE.txt
5+
nbm.homepage=https://visualvm.github.io
6+
nbm.module.author=Tomas Hurka
7+
nbm.needs.restart=true
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.apisupport.project</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
6+
<code-name-base>org.graalvm.visualvm.jfr.streaming</code-name-base>
7+
<suite-component/>
8+
<module-dependencies>
9+
<dependency>
10+
<code-name-base>org.graalvm.visualvm.application</code-name-base>
11+
<build-prerequisite/>
12+
<compile-dependency/>
13+
<run-dependency>
14+
<release-version>2</release-version>
15+
<specification-version>2.0</specification-version>
16+
</run-dependency>
17+
</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.1</specification-version>
25+
</run-dependency>
26+
</dependency>
27+
<dependency>
28+
<code-name-base>org.graalvm.visualvm.core</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>
36+
<dependency>
37+
<code-name-base>org.graalvm.visualvm.lib.jfluid</code-name-base>
38+
<build-prerequisite/>
39+
<compile-dependency/>
40+
<run-dependency>
41+
<release-version>2</release-version>
42+
<specification-version>2.10</specification-version>
43+
</run-dependency>
44+
</dependency>
45+
<dependency>
46+
<code-name-base>org.graalvm.visualvm.tools</code-name-base>
47+
<build-prerequisite/>
48+
<compile-dependency/>
49+
<run-dependency>
50+
<release-version>2</release-version>
51+
<specification-version>2.0</specification-version>
52+
</run-dependency>
53+
</dependency>
54+
<dependency>
55+
<code-name-base>org.openide.util.lookup</code-name-base>
56+
<build-prerequisite/>
57+
<compile-dependency/>
58+
<run-dependency>
59+
<specification-version>8.46</specification-version>
60+
</run-dependency>
61+
</dependency>
62+
</module-dependencies>
63+
<public-packages/>
64+
</data>
65+
</configuration>
66+
</project>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
suite.dir=${basedir}/..
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Copyright (c) 2021, 2021, 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+
OpenIDE-Module-Display-Category=JFR Loaders
26+
OpenIDE-Module-Long-Description=\
27+
Support for the JFR Streaming bundled with JDK 17 and newer (requires running VisualVM on JDK 17+)
28+
OpenIDE-Module-Name=VisualVM-JFR Streaming
29+
OpenIDE-Module-Short-Description=Support for the JFR streaming for JDK 17 and newer

0 commit comments

Comments
 (0)