RFR: Excluding a few default packages with StackProfiler

Behrooz Nobakht nobeh5 at gmail.com
Tue Jan 27 12:55:10 UTC 2015


Hi Aleksey,

Thanks for your review and comments.
Indeed, I've missed a few important things
to make a decision to include a stack line or not.
I've updated the patch and attached.

I've signed and sent the OCA but I think that'd
take a while.

Thanks,
Behrooz


On Fri, Jan 23, 2015 at 10:50 AM, Aleksey Shipilev <
aleksey.shipilev at oracle.com> wrote:

> Hi Behrooz,
>
> On 01/23/2015 12:37 PM, Behrooz Nobakht wrote:
> > During benchmarking and playing with StackProfile,
> > I really needed to be able to exclude certain default
> > JVM packages from the stacks.
>
> I understand the use case. However, quite some people use JMH to
> identify problems with the JDK itself. So, this new behavior should be
> turned off by default.
>
> I also think the filtering by stack head biases the profile a lot. Think
> about e.g. the user method that calls into HashMap. It seems odd to
> filter out that stack ending in HashMap.get() -- it would miss the
> "legitimate" part of a stack. If anything, it should probably filter the
> excluded classes from the stack top, but still record it the rest of the
> stack as legitimate.
>
> > The result is attached as a patch. I hope that it can be
> > reviewed and applied as it may be useful for others, too.
>
> In order for us to accept your contribution, you need to sign the OCA,
> as required by OpenJDK contribution policy:
>  http://openjdk.java.net/contribute/
>
> Thanks,
> -Aleksey.
>
>


-- 
-- Behrooz Nobakht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StackProfiler.patch
Type: text/x-patch
Size: 4113 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jmh-dev/attachments/20150127/4d5dc904/StackProfiler.patch>


More information about the jmh-dev mailing list