Git Product home page Git Product logo

Comments (6)

chriswhocodes avatar chriswhocodes commented on July 28, 2024

Hi, the race condition between the various loggers in HotSpot is a known bug, filed as issue #3. I hope to speak to the HotSpot team about that.

Have you mounted any jars or class folders in the config? If nothing from the log could be classloaded that could explain the blank GUI. If not, could you email me your hotspot.log to [email protected] and I'll take a look?

from jitwatch.

tcn avatar tcn commented on July 28, 2024

Jars: of course.

RTFM :( I debugged through the code when I wondered why it expected XML tags and my log didn't contain any. I actually piped stdout to a file rather than using the generated hotspot.log. My bad, sorry! This is actually mentioned in the Wiki but maybe to make it even more fool-proof let the file open dialog filter for "hotspot.log" or show a warning if a different file name is selected.

from jitwatch.

chriswhocodes avatar chriswhocodes commented on July 28, 2024

No problem, thanks for trying it out! I'll put in some code to display a warning if the opened file isn't recognised as a hotspot log.

from jitwatch.

tcn avatar tcn commented on July 28, 2024

So, here's my suggestion:

FileChooser fc = new FileChooser();
fc.setTitle("Choose HotSpot log file");
fc.getExtensionFilters().addAll(
    new FileChooser.ExtensionFilter("HotSpot Log File", "hotspot.log"),
    new FileChooser.ExtensionFilter("All Files", "*")
);

from jitwatch.

chriswhocodes avatar chriswhocodes commented on July 28, 2024

That code works fine for Linux but there appears to be a bug in JavaFX on OSX Mavericks on 1.7.0_51 with the extension filter combo missing so you can't select anything other than the first filter. Have submitted a JIRA issue and will wait until response before committing this. Thanks :)

from jitwatch.

chriswhocodes avatar chriswhocodes commented on July 28, 2024

Added FilerChooser.ExtensionFilter except on OSX where there is a JavaFX bug with the filter combo not appearing. Got a response to my JIRA ticket that it won't be fixed in JavaFX2.2 (works in JavaFX8)

from jitwatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.