File tree Expand file tree Collapse file tree 7 files changed +22
-77
lines changed
native-image/add-jfr-support Expand file tree Collapse file tree 7 files changed +22
-77
lines changed Original file line number Diff line number Diff line change 1
- name : native-jfr-demo
1
+ name : native-image/add- jfr-support
2
2
on :
3
3
push :
4
4
paths :
5
- - ' native-jfr-demo /**'
6
- - ' .github/workflows/native-jfr-demo .yml'
5
+ - ' native-image/add- jfr-support /**'
6
+ - ' .github/workflows/native-image-add- jfr-support .yml'
7
7
pull_request :
8
8
paths :
9
- - ' native-jfr-demo /**'
10
- - ' .github/workflows/native-jfr-demo .yml'
9
+ - ' native-image/add- jfr-support /**'
10
+ - ' .github/workflows/native-image-add- jfr-support .yml'
11
11
schedule :
12
12
- cron : " 0 0 1 * *" # run every month
13
13
workflow_dispatch :
20
20
timeout-minutes : 15
21
21
strategy :
22
22
matrix :
23
- java-version : ['21', 'dev ']
23
+ java-version : ['21', '24-ea ']
24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
- uses : graalvm/setup-graalvm@v1
31
31
native-image-job-reports : ' true'
32
32
- name : Run 'native-jfr-demo'
33
33
run : |
34
- cd native-jfr-demo
35
- javac JFRDemo.java
36
- native-image --enable-monitoring=jfr JFRDemo
37
- ./jfrdemo -XX:+FlightRecorder -XX:StartFlightRecording="filename=recording.jfr"
38
- jfr print recording.jfr
34
+ cd native-image/add-jfr-support
35
+ ./run.sh
Original file line number Diff line number Diff line change 1
1
* .txt
2
2
* .class
3
- jfrdemo
4
- * .jfr
3
+ * .jfr
4
+ jfrdemo
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
38
38
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
39
* SOFTWARE.
40
40
*/
41
- import jdk .jfr .Event ;
42
41
import jdk .jfr .Description ;
42
+ import jdk .jfr .Event ;
43
43
import jdk .jfr .Label ;
44
44
45
45
public class JFRDemo {
Original file line number Diff line number Diff line change
1
+ # Build and Run Native Executables with JFR
2
+
3
+ You can find the steps to run this demo on [ the website] ( https://www.graalvm.org/latest/reference-manual/native-image/guides/build-and-run-native-executable-with-jfr/ ) .
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -ex
3
+
4
+ $JAVA_HOME /bin/javac JFRDemo.java
5
+ $JAVA_HOME /bin/native-image -Ob --enable-monitoring=jfr JFRDemo
6
+ ./jfrdemo -XX:StartFlightRecording=filename=recording.jfr
7
+ jfr print recording.jfr
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments