V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
skt041959
V2EX  ›  C

使用 Sun collector 做性能优化的一点问题

  •  
  •   skt041959 · Jul 5, 2018 · 2669 views
    This topic created in 2857 days ago, the information mentioned may be changed or developed.

    最近在对 C++ 程序做性能优化,程序是多线程执行的。

    对比两份 code base,如果使用 collector 监测的话,CPU time 几乎完全一致。 但是如果不使用 collector 监测,就会有 30% 的 CPU time 差异。

    有大佬知道是什么原因么?以及,在 collector 无法准确 profiling 的情况下,还有什么办法准确分析性能么?

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