RFR: 7952: JfrRulesReport -format xml produce incorrect results

Jean-Philippe Bempel jpbempel at openjdk.org
Wed Jan 25 08:40:17 UTC 2023


On Mon, 23 Jan 2023 16:55:26 GMT, Virag Purnam <duke at openjdk.org> wrote:

> While generating JFR Rules Report in xml produces incorrect result for Method Profiling, Allocated Classes and Threads Allocating.
> 
> 
> For example, for Method Profiling XML shows:
> 
> The methods that used the most CPU are:
> org.openjdk.jmc.flightrecorder.rules.jdk.latency.MethodProfilingRule$MethodPro
> filingWindowResult at 53fb3dab
> 
> when it should be :
> org.eclipse.jetty.server.HttpOutput.acquireBuffer() (43.4 % of samples)
> 10/21/2022, 12:25:52.000 PM – 12:26:22 PM
> 
> 
> After the fix, I have compared the outputs. Now it provides a readable list. Earlier it was dumping the object directly. Please refer the below screen shot. 
> <img width="925" alt="7952" src="https://user-images.githubusercontent.com/97600378/214099759-1465ae74-646b-4483-994a-af323986c627.png">

Marked as reviewed by jpbempel (Committer).

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

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


More information about the jmc-dev mailing list