Skip to content

Instantly share code, notes, and snippets.

@headius
Created November 4, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/4490fdac21b663527512ca11b5e799e7 to your computer and use it in GitHub Desktop.
Save headius/4490fdac21b663527512ca11b5e799e7 to your computer and use it in GitHub Desktop.
[] ~/projects/jruby $ jruby --sample -e '100.times { 100.times { 100.times { 100.times { "foo" } } } }'
[] ~/projects/jruby $ head -50 sample.txt
--- Execution profile ---
Total samples : 7554
unknown_Java : 2 (0.03%)
not_walkable_Java : 26 (0.34%)
deoptimization : 5 (0.07%)
Frame buffer usage : 13.9233%
ns percent samples top
---------- ------- ------- ---
498000000 13.19% 996 JNIMethodBlock::add_method(Method*)
300500000 7.96% 601 org.jruby.runtime.Block.setVisibility
149500000 3.96% 299 org.jruby.RubyString.newStringShared
55000000 1.46% 110 org.jruby.ir.runtime.IRRuntimeHelpers.updateBlockState
54000000 1.43% 108 DashE.RUBY$block$-e$3
51000000 1.35% 102 __psynch_cvwait
41000000 1.09% 82 PhaseIdealLoop::idom_no_update(Node*) const
40500000 1.07% 81 java.lang.invoke.MethodHandle.invokeBasic
36500000 0.97% 73 IndexSetIterator::advance_and_next()
31500000 0.83% 63 PhaseChaitin::Split(unsigned int, ResourceArea*)
31500000 0.83% 63 java.lang.invoke.LambdaForm$MH.2056418216.invokeExact_MT
31500000 0.83% 63 org.jruby.runtime.Frame.setVisibility
31000000 0.82% 62 java.lang.ThreadLocal$ThreadLocalMap.remove
30500000 0.81% 61 org.jruby.runtime.ThreadContext.pushFrame
30000000 0.79% 60 org.jruby.runtime.ThreadContext.getNextFrame
29000000 0.77% 58 java.lang.invoke.LambdaForm$BMH.1615056168.reinvoke
24500000 0.65% 49 IndexSetIterator::next()
23500000 0.62% 47 java.lang.ThreadLocal.get
23000000 0.61% 46 SymbolTable::lookup(int, char const*, int, unsigned int)
22500000 0.60% 45 IndexSet::insert(unsigned int)
21000000 0.56% 42 PhaseIdealLoop::dom_depth(Node*) const
20500000 0.54% 41 PhaseChaitin::build_ifg_physical(ResourceArea*)
20000000 0.53% 40 java.lang.invoke.LambdaForm$DMH.666988784.invokeStatic_L6_L
20000000 0.53% 40 pthread_getspecific
19500000 0.52% 39 PhaseChaitin::gather_lrg_masks(bool)
19000000 0.50% 38 PhaseChaitin::post_allocate_copy_removal()
18000000 0.48% 36 zError
17500000 0.46% 35 org.jruby.runtime.Block.setEvalType
17000000 0.45% 34 org.jruby.runtime.Block.getVisibility
17000000 0.45% 34 _platform_bzero$VARIANT$Haswell
16500000 0.44% 33 PhaseAggressiveCoalesce::insert_copies(Matcher&)
16500000 0.44% 33 binary_search(Array<Method*>*, Symbol*)
16500000 0.44% 33 java.lang.ThreadLocal.remove
16000000 0.42% 32 _platform_memmove$VARIANT$Haswell
16000000 0.42% 32 VectorSet::test_set(unsigned int)
15500000 0.41% 31 Arena::Amalloc(unsigned long, AllocFailStrategy::AllocFailEnum)
15500000 0.41% 31 org.jruby.ir.targets.Bootstrap.string
15000000 0.40% 30 GrowableArray<Metadata*>::append(Metadata* const&)
14500000 0.38% 29 java.lang.ThreadLocal.getMap
14500000 0.38% 29 PhaseLive::compute(unsigned int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment