RFR: 8244: Option that allows you to turn off scientific notation in JMC

Suchita Chaturvedi schaturvedi at openjdk.org
Sun Jul 28 19:30:04 UTC 2024


This PR resolves the issue of scientific notation display for attributes with long datatype. This was the common pain-point of several customers and we were getting repeated requests of fixing this issue as they were not able to analyze the data due to this format of display. Since there is very less difference between the values of each row, after converting it to scientific notation all values look-alike and its difficult for customers to analyze the data. We have consulted the JFR team and there was a suggestion of skipping long attributes for this format display as they have followed in JFR-tools also. Same approach I have followed in JMC too. Please provide your valuable feedbacks. 

Attaching few screenshots for better reference:

Before:
<img width="464" alt="image" src="https://github.com/user-attachments/assets/44566b32-8f40-4f14-8885-c81ebd2e1d97">

After:
<img width="473" alt="image" src="https://github.com/user-attachments/assets/788785b1-d3b1-42fc-ae52-c03d01b20da2">

Before:
<img width="394" alt="image" src="https://github.com/user-attachments/assets/32568ba2-9925-4914-91db-d949f4f6d78e">

After:
<img width="385" alt="image" src="https://github.com/user-attachments/assets/90288ce2-1565-41ba-87c3-0e1fcc28b1ad">

Before:
<img width="688" alt="image" src="https://github.com/user-attachments/assets/0968b452-8097-4e71-b951-55c9996de8f6">

After:
<img width="692" alt="image" src="https://github.com/user-attachments/assets/0388ae51-dfc4-46b4-9e64-857b81da1853">

-------------

Commit messages:
 - 8244: Option that allows you to turn off scientific notation in JMC

Changes: https://git.openjdk.org/jmc/pull/572/files
  Webrev: https://webrevs.openjdk.org/?repo=jmc&pr=572&range=00
  Issue: https://bugs.openjdk.org/browse/JMC-8244
  Stats: 68 lines in 3 files changed: 60 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jmc/pull/572.diff
  Fetch: git fetch https://git.openjdk.org/jmc.git pull/572/head:pull/572

PR: https://git.openjdk.org/jmc/pull/572


More information about the jmc-dev mailing list