Menu

The performance of the cppcheck --dump function is significantly degraded

zhouming
2022-02-11
2022-02-14
  • zhouming

    zhouming - 2022-02-11

    I tested three versions of cppcheck for dump output of source files, 1.9, 2.2, and 2.6, and found that the efficiency of the dump function was significantly reduced. I suggest that the new version be optimized.
    cmd: cppcheck -f --language=c++ --dump src_dir
    I test same 22 src files in src_dir, and get the time consume:
    version 1.9: 0.9655min
    version 2.2: 1.2828min
    version 2.6: 2.7085min

     
  • Daniel Marjamäki

    If you wonder why Cppcheck 2.6 takes 2.7085min I suggest that you run with the option --showtime=summary. I would assume that ValueFlow is taking much more time.

     
    • zhouming

      zhouming - 2022-02-14

      OK, I will try it.
      But based on my tests last week, I found that some source file failed to generate dump files in one night(ver2.6).
      So it seems abnarmal.

       
    • zhouming

      zhouming - 2022-02-14

      OK, I will try it. 
      But based on my tests last week, I found that some source file failed to generate dump files in one night.
      So it seems abnarmal.

      ------------------ Original ------------------
      From: "[cppcheck:discussion] " <danielmarjamaki@users.sourceforge.net>;
      Date: Sun, Feb 13, 2022 04:16 PM
      To: "[cppcheck:discussion] "<general@discussion.cppcheck.p.re.sourceforge.net>;

      Subject: [cppcheck:discussion] The performance of the cppcheck --dump function is significantly degraded

      If you wonder why Cppcheck 2.6 takes 2.7085min I suggest that you run with the option --showtime=summary. I would assume that ValueFlow is taking much more time.

      The performance of the cppcheck --dump function is significantly degraded

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cppcheck/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.