Skip to content

Commit

Permalink
Release version 1.1
Browse files Browse the repository at this point in the history
* Search capabilities
* UI improvements
  • Loading branch information
twasyl committed Dec 11, 2016
1 parent 64fd88f commit fce6cde
Show file tree
Hide file tree
Showing 25 changed files with 1,570 additions and 139 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,34 @@ java -jar jstackfx-<version>.jar --pid=<pid of the process to dump>

![Screenshot of JStackFX](src/site/screenshots/JStackFX_01.png)
![Screenshot of JStackFX](src/site/screenshots/JStackFX_02.png)
![Screenshot of JStackFX](src/site/screenshots/JStackFX_03.png)

# Usage

## Searching

Use the search bar in JStackFX to filter results. A query must have the following syntax:

```shell
fieldName comparator value operand fieldName comparator value ...
```

* _fieldName_ can be: **state**, **number**, **threadId**, **priority** or **osPriority**
* _comparator_ can be: **=** or **!=**
* _operand_ can be: **and** or **or**

<u>Examples:</u>

* List all RUNNABLE threads:`state = runnable`
* Display threads having number 10 or 20: `number = 10 or number = 20`
* Display threads ha ving number 10 or thread having number 20 and is in state BLOCKED: `number = 10 or number = 20 and state = blocked`

# Changes

## Version 1.1

**New and noteworthy:**

* Adding a search bar for filtering results
* Change the cursor when over a blocked or blocking thread in the table
* Make some information of the thread copyable
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.twasyl'
version '1.0'
version '1.1'

apply plugin: 'java'
apply plugin: 'distribution'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/twasyl/jstackfx/JStackFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class JStackFX extends Application {
public void init() throws Exception {
final Map<String, String> parameters = getParameters().getNamed();

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

if(this.pidToDumpAtStartup != null) {
if (this.pidToDumpAtStartup != null) {
final JStackFXController controller = loader.getController();
try {
final long pid = Long.parseLong(this.pidToDumpAtStartup);
Expand Down
Loading

0 comments on commit fce6cde

Please sign in to comment.