Skip to content

Commit fce6cde

Browse files
committed
Release version 1.1
* Search capabilities * UI improvements
1 parent 64fd88f commit fce6cde

25 files changed

+1570
-139
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,34 @@ java -jar jstackfx-<version>.jar --pid=<pid of the process to dump>
4343

4444
![Screenshot of JStackFX](src/site/screenshots/JStackFX_01.png)
4545
![Screenshot of JStackFX](src/site/screenshots/JStackFX_02.png)
46+
![Screenshot of JStackFX](src/site/screenshots/JStackFX_03.png)
47+
48+
# Usage
49+
50+
## Searching
51+
52+
Use the search bar in JStackFX to filter results. A query must have the following syntax:
53+
54+
```shell
55+
fieldName comparator value operand fieldName comparator value ...
56+
```
57+
58+
* _fieldName_ can be: **state**, **number**, **threadId**, **priority** or **osPriority**
59+
* _comparator_ can be: **=** or **!=**
60+
* _operand_ can be: **and** or **or**
61+
62+
<u>Examples:</u>
63+
64+
* List all RUNNABLE threads:`state = runnable`
65+
* Display threads having number 10 or 20: `number = 10 or number = 20`
66+
* Display threads ha ving number 10 or thread having number 20 and is in state BLOCKED: `number = 10 or number = 20 and state = blocked`
67+
68+
# Changes
69+
70+
## Version 1.1
71+
72+
**New and noteworthy:**
73+
74+
* Adding a search bar for filtering results
75+
* Change the cursor when over a blocked or blocking thread in the table
76+
* Make some information of the thread copyable

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'io.twasyl'
2-
version '1.0'
2+
version '1.1'
33

44
apply plugin: 'java'
55
apply plugin: 'distribution'

src/main/java/io/twasyl/jstackfx/JStackFX.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class JStackFX extends Application {
2929
public void init() throws Exception {
3030
final Map<String, String> parameters = getParameters().getNamed();
3131

32-
if(parameters.containsKey(PID_PARAMETER)) {
32+
if (parameters.containsKey(PID_PARAMETER)) {
3333
this.pidToDumpAtStartup = parameters.get(PID_PARAMETER);
3434
} else if (parameters.containsKey(FILE_PARAMETER)) {
3535
this.fileToOpenAtStartup = new File(parameters.get(FILE_PARAMETER));
@@ -41,7 +41,7 @@ public void start(Stage stage) throws Exception {
4141
final FXMLLoader loader = new FXMLLoader(JStackFX.class.getResource("/io/twasyl/jstackfx/fxml/jstackfx.fxml"));
4242
final Parent root = loader.load();
4343

44-
if(this.pidToDumpAtStartup != null) {
44+
if (this.pidToDumpAtStartup != null) {
4545
final JStackFXController controller = loader.getController();
4646
try {
4747
final long pid = Long.parseLong(this.pidToDumpAtStartup);

0 commit comments

Comments
 (0)