Skip to content

Commit bcf2be7

Browse files
authored
Merge pull request #304 from graalvm/ni-demos-refactoring-3
[GR-60094] Refactor the demo for Create a Heap Dump from a Native Executable guide.
2 parents 2d4b840 + da607c2 commit bcf2be7

File tree

12 files changed

+57
-183
lines changed

12 files changed

+57
-183
lines changed

.github/workflows/native-heapdump-examples.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: native-image/create-heap-dumps
2+
on:
3+
push:
4+
paths:
5+
- 'native-image/create-heap-dumps/**'
6+
- '.github/workflows/native-image-create-heap-dumps.yml'
7+
pull_request:
8+
paths:
9+
- 'native-image/create-heap-dumps/**'
10+
- '.github/workflows/native-image-create-heap-dumps.yml'
11+
schedule:
12+
- cron: "0 0 1 * *" # run every month
13+
workflow_dispatch:
14+
permissions:
15+
contents: read
16+
jobs:
17+
run:
18+
name: Run 'native-image/create-heap-dumps'
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 15
21+
strategy:
22+
matrix:
23+
java-version: ['21', '24-ea']
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: graalvm/setup-graalvm@v1
27+
with:
28+
java-version: ${{ matrix.java-version }}
29+
distribution: 'graalvm'
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
native-image-job-reports: 'true'
32+
- name: Run 'native-image/create-heap-dumps'
33+
run: |
34+
cd native-image/create-heap-dumps
35+
./run.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ cd graalvm-demos
8484
<td align="left" width="70%">Demonstrates how to build a fully static and a mostly-static native executable.<br><strong>Technologies: </strong> Native Image <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/">Build a Statically Linked or Mostly-Statically Linked Native Executable</a></td>
8585
</tr>
8686
<tr>
87-
<td align="left" width="30%"><a href="/native-heapdump-examples/">native-heapdump-examples</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-heapdump-examples.yml"><img alt="native-heapdump-examples" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-heapdump-examples.yml/badge.svg"/></a></td>
87+
<td align="left" width="30%"><a href="/native-image/create-heap-dumps/">native-image/create-heap-dumps</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-create-heap-dumps.yml"><img alt="native-image/create-heap-dumps" src="https://github.com/graalvm/graalvm-demos/actions/workflows/native-image-create-heap-dumps.yml/badge.svg"/></a></td>
8888
<td align="left" width="70%">Demonstrates different ways to generate a heap dump from a running native executable.<br><strong>Technologies: </strong> Native Image, VisualVM <br><strong>Reference: </strong><a href="https://www.graalvm.org/latest/reference-manual/native-image/guides/create-heap-dump/">Create a Heap Dump from a Native Executable</a></td>
8989
</tr>
9090
<tr>

native-heapdump-examples/README.md

Lines changed: 0 additions & 139 deletions
This file was deleted.
-227 KB
Binary file not shown.
-230 KB
Binary file not shown.

native-heapdump-examples/.gitignore renamed to native-image/create-heap-dumps/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.class
22
*.txt
3+
helloworld
34
svmheapdump
45
*.hprof
56
svmheapdumpapi
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Create a Heap Dump from a Native Executable
2+
3+
You can find the steps to run this demo on [the website](https://www.graalvm.org/latest/reference-manual/native-image/guides/create-heap-dump/).

0 commit comments

Comments
 (0)