mikemccand commented on PR #15997:
URL: https://github.com/apache/lucene/pull/15997#issuecomment-4354625286

   OK nevermind if I lower the stack size, the profiling looks more reasonable 
-- I think it's working! -- I'm kinda happy that `Random#next` is up there 
(number 2) -- go randomized testing!
   
   ```
   > Task :showJfrProfileSummary
   Aggregated summary of 12 jfr profiles.
   PROFILE SUMMARY from 158249 events (total: 158249)
     tests.profile.mode=cpu
     tests.profile.count=100
     tests.profile.stacksize=2
     tests.profile.linenumbers=true
   PERCENT       CPU SAMPLES   STACK
   0.56%         882           java.lang.AbstractStringBuilder#append():653 
[JIT compiled code]
                                 at java.lang.StringBuilder#append():179 
[Inlined code]
   0.54%         855           
java.util.concurrent.atomic.AtomicLong#compareAndSet():138 [Inlined code]
                                 at java.util.Random#next():438 [JIT compiled 
code]
   0.51%         810           
org.apache.lucene.tests.store.MockIndexOutputWrapper#writeBytes():149 [JIT 
compiled code]
                                 at 
org.apache.lucene.tests.store.MockIndexOutputWrapper#writeByte():131 [JIT 
compiled code]
   0.49%         780           
org.apache.lucene.tests.store.MockDirectoryWrapper#maybeThrowDeterministicException():1074
 [JIT compiled code]
                                 at 
org.apache.lucene.tests.store.MockIndexOutputWrapper#writeBytes():149 [JIT 
compiled code]
   0.49%         774           org.apache.lucene.util.FixedBitSet#<init>():148 
[Inlined code]
                                 at 
org.apache.lucene.codecs.lucene104.Lucene104PostingsReader$BlockPostingsEnum#<init>():306
 [JIT compiled code]
   0.47%         746           
jdk.internal.misc.Unsafe#allocateUninitializedArray0():1403 [JIT compiled code]
                                 at 
jdk.internal.misc.Unsafe#allocateUninitializedArray():1396 [JIT compiled code]
   0.47%         737           
java.util.stream.MatchOps$2MatchSink#accept():119 [JIT compiled code]
                                 at 
java.util.stream.Streams$RangeIntSpliterator#tryAdvance():82 [JIT compiled code]
   0.46%         723           java.util.Arrays#copyOf():3537 [Inlined code]
                                 at 
java.lang.AbstractStringBuilder#ensureCapacityNewCoder():282 [JIT compiled code]
   0.42%         659           
org.apache.lucene.codecs.lucene104.Lucene104PostingsReader$BlockPostingsEnum#<init>():334
 [JIT compiled code]
                                 at 
org.apache.lucene.codecs.lucene104.Lucene104PostingsReader#postings():259 [JIT 
compiled code]
   0.41%         644           
java.util.concurrent.locks.AbstractQueuedSynchronizer#setState():555 [Inlined 
code]
                                 at 
java.util.concurrent.locks.ReentrantLock$Sync#tryRelease():180 [JIT compiled 
code]
   0.38%         602           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1060 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1056 [JIT 
compiled code]
   0.37%         583           
com.carrotsearch.randomizedtesting.RandomizedContext#context():239 [JIT 
compiled code]
                                 at 
com.carrotsearch.randomizedtesting.RandomizedContext#current():134 [Inlined 
code]
   0.36%         572           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1061 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1056 [JIT 
compiled code]
   0.35%         554           java.nio.HeapByteBuffer#get():180 [JIT compiled 
code]
                                 at 
org.apache.lucene.store.ByteBuffersDataInput#readByte():97 [JIT compiled code]
   0.34%         542           java.nio.ByteBuffer#limit():1575 [JIT compiled 
code]
                                 at java.nio.ByteBuffer#limit():292 [JIT 
compiled code]
   0.32%         509           java.util.zip.Inflater#inflateBytesBytes() 
[Native code]
                                 at java.util.zip.Inflater#inflate():354 [JIT 
compiled code]
   0.30%         475           java.nio.ByteBuffer#position():1561 [Inlined 
code]
                                 at java.nio.HeapByteBuffer#get():196 [JIT 
compiled code]
   0.29%         465           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1060 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1053 [JIT 
compiled code]
   0.29%         464           
org.apache.lucene.index.IndexingChain$IntBlockAllocator#getIntBlock():1487 
[Inlined code]
                                 at 
org.apache.lucene.util.IntBlockPool#nextBuffer():153 [JIT compiled code]
   0.29%         463           java.lang.Thread#yield0() [Native code]
                                 at java.lang.Thread#yield():462 [Inlined code]
   0.29%         461           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1061 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1050 [JIT 
compiled code]
   0.29%         457           
java.util.stream.IntPipeline#forEachWithCancel():163 [JIT compiled code]
                                 at 
java.util.stream.AbstractPipeline#copyIntoWithCancel():588 [JIT compiled code]
   0.29%         455           
org.apache.lucene.util.ByteBlockPool$DirectTrackingAllocator#getByteBlock():97 
[JIT compiled code]
                                 at 
org.apache.lucene.util.ByteBlockPool#nextBuffer():196 [JIT compiled code]
   0.28%         443           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1060 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1050 [JIT 
compiled code]
   0.28%         441           
org.apache.lucene.geo.TestTessellator#isEdgeFromPolygon():1061 [JIT compiled 
code]
                                 at 
org.apache.lucene.geo.TestTessellator#checkTriangleEdgesFromPolygon():1053 [JIT 
compiled code]
   0.27%         425           
com.carrotsearch.randomizedtesting.RandomizedContext#current():134 [Inlined 
code]
                                 at 
org.apache.lucene.tests.util.LuceneTestCase#lambda$static$0():736 [Inlined code]
   0.27%         422           sun.nio.fs.UnixNativeDispatcher#open0() [Native 
code]
                                 at sun.nio.fs.UnixNativeDispatcher#open():69 
[JIT compiled code]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to