爱意满满的作品展示区。
gongxuanzhang

写了个函数调用监控,不采样的火焰图

  •  
  •   gongxuanzhang · Dec 23, 2024 · 1991 views
  •   You need to sign in to view this topic
    This topic created in 596 days ago, the information mentioned may be changed or developed.

    起因是自己写的一个 mini Innodb 一个插入要很久,调用链很长不知道从哪看起。 火焰图和 benchmark 太重了.. 我希望有一个直接集成在测试里的监控. 跑一个测试就可以生成报告,于是写了个工具。 底层是用了 JFR 的 Event. 没有采样,是全量事件,所以会影响性能,不过很符合我自己的需求场景,可以看到某个函数在线程/调用栈之间的所有行为,包括一共被执行了多少次等等. 分享一下

    gif

    https://github.com/medivh-project/medivh

    report

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5549 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.