V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
gongxuanzhang

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

  •  
  •   gongxuanzhang · Dec 23, 2024 · 1809 views
    This topic created in 494 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   ·   2419 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:28 · PVG 18:28 · LAX 03:28 · JFK 06:28
    ♥ Do have faith in what you're doing.